Skip to content

Commit f556b12

Browse files
committed
lmao
1 parent 20016a7 commit f556b12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/call-cabal-project-to-nix.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ let
230230
else if repoData.sha256 != null
231231
then fetchgit { inherit (repoData) url sha256 rev; }
232232
else
233-
let drv = builtins.fetchGit { inherit (repoData) url ref; };
233+
let drv = builtins.fetchGit { inherit (repoData) url ; rev = repoData.rev or repoData.ref; ref = repoData.ref or null; };
234234
in __trace "WARNING: No sha256 found for source-repository-package ${repoData.url} ${repoData.ref} download may fail in restricted mode (hydra)"
235235
(__trace "Consider adding `--sha256: ${hashPath drv}` to the ${cabalProjectFileName} file or passing in a sha256map argument"
236236
drv);

0 commit comments

Comments
 (0)