nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

fetchFromGitLab: don't passthruAttrs fetchGit specific attrs to fetchUrl

if `fetchSubmodules = false` to 'fetchFromGitLab' then theres the
following error

error: anonymous function at /nix/store/9m8drnpifyl5qsx93g6ll2xw6wkps03z-source/pkgs/build-support/fetchurl/default.nix:41:1 called with unexpected argument 'fetchSubmodules'

at /nix/store/9m8drnpifyl5qsx93g6ll2xw6wkps03z-source/pkgs/build-support/fetchzip/default.nix:36:1:

35|
36| fetchurl ((
| ^
37| if (pname != "" && version != "") then

Artturin 19d2bb48 b410bee3

+1 -1
+1 -1
pkgs/build-support/fetchgitlab/default.nix
··· 10 10 slug = lib.concatStringsSep "/" ((lib.optional (group != null) group) ++ [ owner repo ]); 11 11 escapedSlug = lib.replaceStrings [ "." "/" ] [ "%2E" "%2F" ] slug; 12 12 escapedRev = lib.replaceStrings [ "+" "%" "/" ] [ "%2B" "%25" "%2F" ] rev; 13 - passthruAttrs = removeAttrs args [ "protocol" "domain" "owner" "group" "repo" "rev" ]; 13 + passthruAttrs = removeAttrs args [ "protocol" "domain" "owner" "group" "repo" "rev" "fetchSubmodules" "leaveDotGit" "deepClone" ]; 14 14 15 15 useFetchGit = deepClone || fetchSubmodules || leaveDotGit; 16 16 fetcher = if useFetchGit then fetchgit else fetchzip;