Skip to content

Commit 94a114c

Browse files
committed
feat: rework update.py script to use click and logging libraries
1 parent 34dece6 commit 94a114c

File tree

2 files changed

+212
-86
lines changed

2 files changed

+212
-86
lines changed

maintainers/scripts/update/update.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@
4040
++ lib.optional (commit == "true") "--commit";
4141

4242
args = [packagesJson] ++ optionalArgs;
43+
44+
python = pkgs.python311.withPackages (ps:
45+
with ps; [
46+
click
47+
]);
4348
in
4449
pkgs.stdenv.mkDerivation {
4550
name = "flake-packages-update-script";
@@ -55,6 +60,6 @@ in
5560
'';
5661
shellHook = ''
5762
unset shellHook # Prevent contamination in nested shells.
58-
exec ${pkgs.python3}/bin/python ${./update.py} ${builtins.concatStringsSep " " args}
63+
exec ${python}/bin/python ${./update.py} ${builtins.concatStringsSep " " args}
5964
'';
6065
}

0 commit comments

Comments
 (0)