houdini: make unwrapped installation an optionally fixed derivation

This commit is contained in:
pedohorse
2024-12-04 16:43:01 +01:00
parent 0d5a61037c
commit ecc79cd082
+8 -3
View File
@@ -1,5 +1,5 @@
{ stdenv, bc, version, src, eulaDate }:
stdenv.mkDerivation {
{ stdenv, bc, version, src, eulaDate, outputHash ? null }:
stdenv.mkDerivation ({
inherit version src;
pname = "houdini-runtime";
@@ -16,7 +16,12 @@ stdenv.mkDerivation {
--accept-EULA ${eulaDate} \
$out
echo "licensingMode = localValidator" >> $out/houdini/Licensing.opt # does not seem to do anything any more. not sure, official docs do not say anything about it
sed -i 's@'"$out"'@$HFS@g' $out/packages/package_dirs.json # this seem to be internal houdini tools unavailable to users anyway, but they break fixed-derivation
'';
dontFixup = true;
}
} // (if isNull outputHash then {} else {
inherit outputHash;
outputHashAlgo = "sha256";
outputHashMode = "recursive";
}))