File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 95
95
src = pkgs . lib . lists . elemAt callProjectResults . sourceRepos ( pkgs . lib . strings . toInt p . pkg-src . source-repo . location )
96
96
+ pkgs . lib . optionalString ( p . pkg-src . source-repo . subdir != "." ) "/${ p . pkg-src . source-repo . subdir } " ;
97
97
} // pkgs . lib . optionalAttrs ( p . pkg-src . type or "" == "repo-tar" ) {
98
- src = pkgs . fetchurl {
98
+ src = pkgs . lib . mkDefault ( pkgs . fetchurl {
99
99
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" ;
100
100
sha256 = p . pkg-src-sha256 ;
101
- } ;
101
+ } ) ;
102
102
} // pkgs . lib . optionalAttrs ( cabal2nix ? package-description-override && p . pkg-version == cabal2nix . package . identifier . version ) {
103
103
# Use the `.cabal` file from the `Cabal2Nix` if it for the matching
104
104
# version of the package (the one in the plan).
You can’t perform that action at this time.
0 commit comments