zandronum-bin: fix argv0, add license
This commit is contained in:
parent
2701665904
commit
4f3a6d8ee2
@ -16,6 +16,7 @@
|
|||||||
, pango
|
, pango
|
||||||
, SDL
|
, SDL
|
||||||
, zlib
|
, zlib
|
||||||
|
, makeWrapper
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -46,6 +47,8 @@ stdenv.mkDerivation rec {
|
|||||||
zlib
|
zlib
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
phases = [ "unpackPhase" "installPhase" ];
|
phases = [ "unpackPhase" "installPhase" ];
|
||||||
|
|
||||||
sourceRoot = ".";
|
sourceRoot = ".";
|
||||||
@ -64,14 +67,17 @@ stdenv.mkDerivation rec {
|
|||||||
--set-rpath $libPath \
|
--set-rpath $libPath \
|
||||||
$out/share/zandronum/zandronum-server
|
$out/share/zandronum/zandronum-server
|
||||||
|
|
||||||
ln -s $out/share/zandronum/zandronum $out/bin/zandronum
|
# If we don't set absolute argv0, zandronum.wad file is not found.
|
||||||
ln -s $out/share/zandronum/zandronum-server $out/bin/zandronum-server
|
makeWrapper $out/share/zandronum/zandronum $out/bin/zandronum
|
||||||
|
makeWrapper $out/share/zandronum/zandronum-server $out/bin/zandronum-server
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://zandronum.com/;
|
homepage = http://zandronum.com/;
|
||||||
description = "multiplayer oriented port, based off Skulltag, for Doom and Doom II by id Software. Binary version for online play.";
|
description = "multiplayer oriented port, based off Skulltag, for Doom and Doom II by id Software. Binary version for online play.";
|
||||||
maintainer = [ stdenv.lib.maintainers.lassulus ];
|
maintainer = [ stdenv.lib.maintainers.lassulus ];
|
||||||
|
# Binary version has different version string than source code version.
|
||||||
|
license = stdenv.lib.licenses.unfreeRedistributable;
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -14596,7 +14596,7 @@ let
|
|||||||
serverOnly = true;
|
serverOnly = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
zandronum-bin = callPackage ../games/zandronum/bin.nix { };
|
zandronum-bin = hiPrio (callPackage ../games/zandronum/bin.nix { });
|
||||||
|
|
||||||
zangband = callPackage ../games/zangband { };
|
zangband = callPackage ../games/zangband { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user