Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Lillecarl/fe7637fd4269b4c646bc544a2cb8fb07 to your computer and use it in GitHub Desktop.
Save Lillecarl/fe7637fd4269b4c646bc544a2cb8fb07 to your computer and use it in GitHub Desktop.
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