Skip to content

Commit 4e41959

Browse files
committedSep 24, 2024··
Fix repo-tar downloads
1 parent de5afd7 commit 4e41959

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lib/load-cabal-plan.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ in {
9595
src = pkgs.lib.lists.elemAt callProjectResults.sourceRepos (pkgs.lib.strings.toInt p.pkg-src.source-repo.location)
9696
+ pkgs.lib.optionalString (p.pkg-src.source-repo.subdir != ".") "/${p.pkg-src.source-repo.subdir}";
9797
} // pkgs.lib.optionalAttrs (p.pkg-src.type or "" == "repo-tar") {
98-
src = pkgs.fetchurl {
98+
src = pkgs.lib.mkDefault (pkgs.fetchurl {
9999
url = p.pkg-src.repo.uri + "${pkgs.lib.optionalString (!pkgs.lib.hasSuffix "/" p.pkg-src.repo.uri) "/"}package/${p.pkg-name}-${p.pkg-version}.tar.gz";
100100
sha256 = p.pkg-src-sha256;
101-
};
101+
});
102102
} // pkgs.lib.optionalAttrs (cabal2nix ? package-description-override && p.pkg-version == cabal2nix.package.identifier.version) {
103103
# Use the `.cabal` file from the `Cabal2Nix` if it for the matching
104104
# version of the package (the one in the plan).

0 commit comments

Comments
 (0)
Please sign in to comment.