Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

54 lines
1.0 KiB
Nix

{
lib,
stdenv,
libpsl,
python3,
lzip,
}:
stdenv.mkDerivation {
pname = "libpsl-with-scripts";
inherit (libpsl) src version patches;
outputs = libpsl.outputs ++ [ "bin" ];
nativeBuildInputs = [
lzip
];
buildInputs = [
python3
];
postPatch = ''
patchShebangs src/psl-make-dafsa
'';
dontConfigure = true;
dontBuild = true;
installPhase =
let
linkOutput = oldOutput: newOutput: ''
cd ${oldOutput}
find . -type d -print0 | xargs -0 -I{} mkdir -p ${newOutput}/{}
find . \( -type f -o -type l \) -print0 | xargs -0 -I{} ln -s ${oldOutput}/{} ${newOutput}/{}
cd -
'';
links = lib.concatMapStrings (
output: linkOutput libpsl.${output} (placeholder output)
) libpsl.outputs;
in
''
runHook preInstall
${links}
install -D src/psl-make-dafsa $bin/bin/psl-make-dafsa
install -D -m 555 src/psl-make-dafsa.1 $out/share/man/man1/psl-make-dafsa.1
runHook postInstall
'';
dontFixup = true;
}