Created
May 9, 2025 13:42
-
-
Save Lillecarl/fe7637fd4269b4c646bc544a2cb8fb07 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/default.nix b/default.nix | |
index 18aafb6..0fabd2e 100644 | |
--- a/default.nix | |
+++ b/default.nix | |
@@ -148,15 +148,20 @@ let | |
shortRev = builtins.substring 0 7 info.rev; | |
} | |
else if info.type == "path" then | |
- { | |
- outPath = builtins.path ( | |
- { | |
- inherit (info) path; | |
- name = "source"; | |
- } | |
- // maybeNarHash info | |
- ); | |
- } | |
+ if copySourceTreeToStore then | |
+ { | |
+ outPath = builtins.path ( | |
+ { | |
+ inherit (info) path; | |
+ name = "source"; | |
+ } | |
+ // maybeNarHash info | |
+ ); | |
+ } | |
+ else | |
+ { | |
+ outPath = info.path; | |
+ } | |
else if info.type == "tarball" then | |
{ | |
outPath = fetchTarball ({ inherit (info) url; } // maybeNarHash info); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment