nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 bc,
4 version,
5 src,
6 eulaDate,
7 outputHash ? null,
8}:
9stdenv.mkDerivation (
10 {
11 inherit version src;
12 pname = "houdini-runtime";
13
14 buildInputs = [ bc ];
15 installPhase = ''
16 patchShebangs houdini.install
17 mkdir -p $out
18 ./houdini.install --install-houdini \
19 --install-license \
20 --no-install-menus \
21 --no-install-bin-symlink \
22 --auto-install \
23 --no-root-check \
24 --accept-EULA ${eulaDate} \
25 $out
26 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
27 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
28 '';
29
30 dontFixup = true;
31 }
32 // (
33 if isNull outputHash then
34 { }
35 else
36 {
37 inherit outputHash;
38 outputHashAlgo = "sha256";
39 outputHashMode = "recursive";
40 }
41 )
42)