2016-11-03 13:43:42 +00:00
|
|
|
{ buildEnv, makeWrapper, zeroad-unwrapped, zeroad-data }:
|
|
|
|
|
|
|
|
assert zeroad-unwrapped.version == zeroad-data.version;
|
|
|
|
|
|
|
|
buildEnv {
|
|
|
|
name = "zeroad-${zeroad-unwrapped.version}";
|
|
|
|
|
2021-07-12 19:30:41 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2016-11-03 13:43:42 +00:00
|
|
|
|
|
|
|
paths = [ zeroad-unwrapped zeroad-data ];
|
|
|
|
|
|
|
|
pathsToLink = [ "/" "/bin" ];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
for i in $out/bin/*; do
|
|
|
|
wrapProgram "$i" \
|
|
|
|
--set ZEROAD_ROOTDIR "$out/share/0ad"
|
|
|
|
done
|
|
|
|
'';
|
2021-08-09 19:59:56 +00:00
|
|
|
|
|
|
|
meta = zeroad-unwrapped.meta // {
|
|
|
|
hydraPlatforms = [];
|
|
|
|
};
|
2016-11-03 13:43:42 +00:00
|
|
|
}
|