Merge pull request #26358 from LnL7/fetchgit-postfetch

fetchgit: add postFetch argument

authored by Jörg Thalheim and committed by GitHub ee22e3de 504552e4

+5 -1
+1
pkgs/build-support/fetchgit/builder.sh
··· 12 ${fetchSubmodules:+--fetch-submodules} \ 13 ${branchName:+--branch-name "$branchName"} 14 15 stopNest
··· 12 ${fetchSubmodules:+--fetch-submodules} \ 13 ${branchName:+--branch-name "$branchName"} 14 15 + runHook postFetch 16 stopNest
+4 -1
pkgs/build-support/fetchgit/default.nix
··· 15 , fetchSubmodules ? true, deepClone ? false 16 , branchName ? null 17 , name ? urlToName url rev 18 }: 19 20 /* NOTE: ··· 54 outputHashMode = "recursive"; 55 outputHash = sha256; 56 57 - inherit url rev leaveDotGit fetchSubmodules deepClone branchName; 58 59 GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt"; 60
··· 15 , fetchSubmodules ? true, deepClone ? false 16 , branchName ? null 17 , name ? urlToName url rev 18 + , # Shell code executed after the file has been fetched 19 + # successfully. This can do things like check or transform the file. 20 + postFetch ? "" 21 }: 22 23 /* NOTE: ··· 57 outputHashMode = "recursive"; 58 outputHash = sha256; 59 60 + inherit url rev leaveDotGit fetchSubmodules deepClone branchName postFetch; 61 62 GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt"; 63