dfe3b739c7
Hydra hasn't built zeroad since the 0.0.24 bump: https://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.zeroad.x86_64-linux/all This is due to the data package becoming larger than the output limit. Even though the data package is already marked with `hydraPlatforms = [];`, hydra still tried to build it, since it is a dependency of `zeroad`. This makes it so `zeroad` isn't built by hydra either. Only `zeroad-unwrapped` (which takes significant compilation time) will be built by hydra.
25 lines
493 B
Nix
25 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 = [];
|
|
};
|
|
}
|