Skip to content

Commit

Permalink
set PATH in update.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Jan 16, 2024
1 parent d705993 commit 5d1b7ba
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions update.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{ writers
{ lib
, writers
, nix
, nix-update
}:

writers.writePython3Bin "pac-nix-update"
{ libraries = [ nix nix-update ]; flakeIgnore = [ "E" "W" ]; }
(builtins.readFile ./update.py)
let binpath = lib.makeBinPath [ nix nix-update ];
in writers.writePython3Bin "pac-nix-update"
{ flakeIgnore = [ "E" "W" ]; }
(''import os; os.environ['PATH'] += os.pathsep + r"""${binpath}"""; del os'' +
builtins.readFile ./update.py)

0 comments on commit 5d1b7ba

Please sign in to comment.