mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
33 lines
456 B
Nix
33 lines
456 B
Nix
{
|
|
buildEnv,
|
|
snis-unwrapped,
|
|
snis-assets,
|
|
makeWrapper,
|
|
}:
|
|
buildEnv {
|
|
name = "snis-${snis-unwrapped.version}";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
paths = [
|
|
snis-unwrapped
|
|
snis-assets
|
|
];
|
|
|
|
pathsToLink = [
|
|
"/"
|
|
"/bin"
|
|
];
|
|
|
|
postBuild = ''
|
|
for i in $out/bin/*; do
|
|
wrapProgram "$i" \
|
|
--set SNIS_ASSET_DIR "$out/share/snis"
|
|
done
|
|
'';
|
|
|
|
meta = snis-unwrapped.meta // {
|
|
hydraPlatforms = [ ];
|
|
};
|
|
}
|