2016-11-03 14:43:42 +01:00
|
|
|
{ buildEnv, makeWrapper, zeroad-unwrapped, zeroad-data }:
|
|
|
|
|
|
|
|
assert zeroad-unwrapped.version == zeroad-data.version;
|
|
|
|
|
|
|
|
buildEnv {
|
|
|
|
name = "zeroad-${zeroad-unwrapped.version}";
|
|
|
|
inherit (zeroad-unwrapped) meta;
|
|
|
|
|
2021-07-12 21:30:41 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2016-11-03 14:43:42 +01:00
|
|
|
|
|
|
|
paths = [ zeroad-unwrapped zeroad-data ];
|
|
|
|
|
|
|
|
pathsToLink = [ "/" "/bin" ];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
for i in $out/bin/*; do
|
|
|
|
wrapProgram "$i" \
|
|
|
|
--set ZEROAD_ROOTDIR "$out/share/0ad"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
}
|