mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
22 lines
455 B
Nix
22 lines
455 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;
|
||
|
|
||
|
buildInputs = [ makeWrapper ];
|
||
|
|
||
|
paths = [ zeroad-unwrapped zeroad-data ];
|
||
|
|
||
|
pathsToLink = [ "/" "/bin" ];
|
||
|
|
||
|
postBuild = ''
|
||
|
for i in $out/bin/*; do
|
||
|
wrapProgram "$i" \
|
||
|
--set ZEROAD_ROOTDIR "$out/share/0ad"
|
||
|
done
|
||
|
'';
|
||
|
}
|