git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #26358 from LnL7/fetchgit-postfetch

fetchgit: add postFetch argument

commitee22e3de08fe4e6b12f893e0a94dae5b6c8b69c0 authorJörg Thalheim <Mic92@users.noreply.github.com> dateSun 4 Jun 2017, 11:14 (9 years ago) parent504552e7567c5c
2 files changed+5−1
pkgs/build-support/fetchgit/builder.sh+1 pkgs/build-support/fetchgit/default.nix+4−1
pkgs/build-support/fetchgit/builder.sh+1
@@ -12,4 +12,5 @@ $SHELL $fetcher --builder --url "$url" --out "$out" --rev "$rev" \
1212 ${fetchSubmodules:+--fetch-submodules} \
1313 ${branchName:+--branch-name "$branchName"}
1414
15+runHook postFetch
1516stopNest
pkgs/build-support/fetchgit/default.nix+4−1
@@ -15,6 +15,9 @@ in
1515, fetchSubmodules ? true, deepClone ? false
1616, branchName ? null
1717, 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 ? ""
1821}:
1922
2023/* NOTE:
@@ -54,7 +57,7 @@ stdenv.mkDerivation {
5457 outputHashMode = "recursive";
5558 outputHash = sha256;
5659
57− inherit url rev leaveDotGit fetchSubmodules deepClone branchName;
60+ inherit url rev leaveDotGit fetchSubmodules deepClone branchName postFetch;
5861
5962 GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt";
6063