e0d1b75f19
GitOrigin-RevId: fe01052444c1d66ed6ef76df2af798c9769e9e79
24 lines
493 B
Nix
24 lines
493 B
Nix
{ buildEnv, makeWrapper, zeroad-unwrapped, zeroad-data }:
|
|
|
|
assert zeroad-unwrapped.version == zeroad-data.version;
|
|
|
|
buildEnv {
|
|
name = "zeroad-${zeroad-unwrapped.version}";
|
|
|
|
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
|
|
'';
|
|
|
|
meta = zeroad-unwrapped.meta // {
|
|
hydraPlatforms = [];
|
|
};
|
|
}
|