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

31 lines
746 B
Nix

{
lib,
python3,
runCommand,
git,
nix,
nix-prefetch-git,
}:
runCommand "update-python-libraries"
{
buildInputs = [
(python3.withPackages (
ps: with ps; [
packaging
requests
toolz
]
))
];
}
''
cp ${./update-python-libraries.py} $out
patchShebangs $out
substituteInPlace $out \
--replace-fail 'NIX = "nix"' 'NIX = "${lib.getExe nix}"' \
--replace-fail 'NIX_PREFETCH_URL = "nix-prefetch-url"' 'NIX_PREFETCH_URL = "${lib.getExe' nix "nix-prefetch-url"}"' \
--replace-fail 'NIX_PREFETCH_GIT = "nix-prefetch-git"' 'NIX_PREFETCH_GIT = "${lib.getExe nix-prefetch-git}"' \
--replace-fail 'GIT = "git"' 'GIT = "${lib.getExe git}"'
''