Advertisement
Guest User

mudcore nix

a guest
Jan 4th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. ### shell.nix ###
  2.  
  3. { nixpkgs ? import <nixpkgs> {} }:
  4.  
  5. let
  6. texlive = nixpkgs.texlive;
  7. mudcore = import ./default.nix { inherit nixpkgs; };
  8. in
  9. mudcore.overrideAttrs (oldAttrs: {
  10. buildInputs = oldAttrs.buildInputs ++ [ texlive ];
  11. })
  12.  
  13.  
  14. ### default.nix ###
  15.  
  16. { nixpkgs ? import <nixpkgs> {} }:
  17.  
  18. let
  19. inherit (nixpkgs) pkgs;
  20.  
  21. mudcore = with pkgs; callPackage ./mudcore.nix {
  22. lua = lua5_2;
  23. zeromq = zeromq4;
  24. };
  25. in
  26. mudcore
  27.  
  28.  
  29. ### mudcore.nix ###
  30.  
  31. { autoreconfHook, glib, libtelnet, lua, pkgconfig, stdenv, texinfo, zeromq }:
  32.  
  33. stdenv.mkDerivation rec {
  34. name = "mudcore";
  35. commit = stdenv.lib.substring 0 7 (stdenv.lib.commitIdFromGitRepo ./.git);
  36. version = "git-${commit}";
  37. src = ./.;
  38.  
  39. nativeBuildInputs = [ autoreconfHook pkgconfig texinfo ];
  40. buildInputs = [ glib libtelnet lua zeromq ];
  41.  
  42. meta = with stdenv.lib; {
  43. homepage = https://git.sr.ht/~jack/mudcore;
  44. description = "A minimal, lua-scripted MUD server";
  45. license = licenses.gpl3Plus;
  46. maintainers = [ maintainers.endgame ];
  47. platforms = platforms.all;
  48. };
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement