c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
13 lines
329 B
Nix
13 lines
329 B
Nix
{ python3, runCommand, git, nix }:
|
|
|
|
runCommand "update-python-libraries" {
|
|
buildInputs = [
|
|
nix
|
|
(python3.withPackages(ps: with ps; [ packaging requests toolz ]))
|
|
git
|
|
];
|
|
} ''
|
|
cp ${./update-python-libraries.py} $out
|
|
patchShebangs $out
|
|
substituteInPlace $out --replace 'GIT = "git"' 'GIT = "${git}/bin/git"'
|
|
''
|