nixpkgs/pkgs/by-name/sn/snis/package.nix
2024-11-26 23:00:59 +01:00

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 = [ ];
};
}