Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### shell.nix ###
- { nixpkgs ? import <nixpkgs> {} }:
- let
- texlive = nixpkgs.texlive;
- mudcore = import ./default.nix { inherit nixpkgs; };
- in
- mudcore.overrideAttrs (oldAttrs: {
- buildInputs = oldAttrs.buildInputs ++ [ texlive ];
- })
- ### default.nix ###
- { nixpkgs ? import <nixpkgs> {} }:
- let
- inherit (nixpkgs) pkgs;
- mudcore = with pkgs; callPackage ./mudcore.nix {
- lua = lua5_2;
- zeromq = zeromq4;
- };
- in
- mudcore
- ### mudcore.nix ###
- { autoreconfHook, glib, libtelnet, lua, pkgconfig, stdenv, texinfo, zeromq }:
- stdenv.mkDerivation rec {
- name = "mudcore";
- commit = stdenv.lib.substring 0 7 (stdenv.lib.commitIdFromGitRepo ./.git);
- version = "git-${commit}";
- src = ./.;
- nativeBuildInputs = [ autoreconfHook pkgconfig texinfo ];
- buildInputs = [ glib libtelnet lua zeromq ];
- meta = with stdenv.lib; {
- homepage = https://git.sr.ht/~jack/mudcore;
- description = "A minimal, lua-scripted MUD server";
- license = licenses.gpl3Plus;
- maintainers = [ maintainers.endgame ];
- platforms = platforms.all;
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement