We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20016a7 commit f556b12Copy full SHA for f556b12
lib/call-cabal-project-to-nix.nix
@@ -230,7 +230,7 @@ let
230
else if repoData.sha256 != null
231
then fetchgit { inherit (repoData) url sha256 rev; }
232
else
233
- let drv = builtins.fetchGit { inherit (repoData) url ref; };
+ let drv = builtins.fetchGit { inherit (repoData) url ; rev = repoData.rev or repoData.ref; ref = repoData.ref or null; };
234
in __trace "WARNING: No sha256 found for source-repository-package ${repoData.url} ${repoData.ref} download may fail in restricted mode (hydra)"
235
(__trace "Consider adding `--sha256: ${hashPath drv}` to the ${cabalProjectFileName} file or passing in a sha256map argument"
236
drv);
0 commit comments