1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 11:02:05 +00:00
nixpkgs/pkgs/games/0ad/wrapper.nix
2021-07-12 21:30:41 +02:00

22 lines
461 B
Nix

{ buildEnv, makeWrapper, zeroad-unwrapped, zeroad-data }:
assert zeroad-unwrapped.version == zeroad-data.version;
buildEnv {
name = "zeroad-${zeroad-unwrapped.version}";
inherit (zeroad-unwrapped) meta;
nativeBuildInputs = [ makeWrapper ];
paths = [ zeroad-unwrapped zeroad-data ];
pathsToLink = [ "/" "/bin" ];
postBuild = ''
for i in $out/bin/*; do
wrapProgram "$i" \
--set ZEROAD_ROOTDIR "$out/share/0ad"
done
'';
}