Skip to content

Commit c6e2cc9

Browse files
committed
gclient2nix: do not depend on nixpkgs path
1 parent 5bd2565 commit c6e2cc9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pkgs/by-name/gc/gclient2nix/gclient2nix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
logger = logging.getLogger(__name__)
2424
click_log.basic_config(logger)
2525

26-
nixpkgs_path = "@nixpkgs_path@"
26+
nixpkgs_path = "<nixpkgs>"
2727

2828
memory: Memory = Memory(user_cache_dir("gclient2nix"), verbose=0)
2929

pkgs/by-name/gc/gclient2nix/package.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
python3,
44
runCommand,
55
makeWrapper,
6-
path,
76
fetchgit,
87
nurl,
98
writers,
@@ -66,7 +65,6 @@ runCommand "gclient2nix"
6665
buildInputs = [ python ];
6766

6867
# substitutions
69-
nixpkgs_path = if builtins.pathExists (path + "/.git") then lib.cleanSource path else path;
7068
depot_tools_checkout = fetchgit {
7169
url = "https://chromium.googlesource.com/chromium/tools/depot_tools";
7270
rev = "452fe3be37f78fbecefa1b4b0d359531bcd70d0d";

0 commit comments

Comments
 (0)