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 12 ${fetchSubmodules:+--fetch-submodules} \ 13 13 ${branchName:+--branch-name "$branchName"} 14 14 15 + runHook postFetch 15 16 stopNest
+4 -1
pkgs/build-support/fetchgit/default.nix
··· 15 15 , fetchSubmodules ? true, deepClone ? false 16 16 , branchName ? null 17 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 ? "" 18 21 }: 19 22 20 23 /* NOTE: ··· 54 57 outputHashMode = "recursive"; 55 58 outputHash = sha256; 56 59 57 - inherit url rev leaveDotGit fetchSubmodules deepClone branchName; 60 + inherit url rev leaveDotGit fetchSubmodules deepClone branchName postFetch; 58 61 59 62 GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt"; 60 63