fetchpatch: Allow to pass a postFetch attribute.
Comes in handy if we want to make additional modificiations to the
output file. While I wasn't sure whether to invoke the passed postFetch
directly before the patch or afterwards, I thought it would be better
afterwards because "postFetch of fetchpatch" at least to my intuition
would sound that after whatever "fetchpatch" does - it comes afterwards.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
commitd2df553da17e38eb73fde1ebcb1664ebe80ddd62
authoraszlig <aszlig@redmoonstudios.org>
dateFri 19 Jun 2015, 18:50 (11 years ago)
parent5cd1fd8
pkgs/build-support/fetchpatch/default.nix+1
@@ -18,5 +18,6 @@ fetchurl ({
1818 --strip=${toString stripLen} \
1919 --clean "$out" > "$tmpfile"
2020 mv "$tmpfile" "$out"
21+ ${args.postFetch or ""}
2122 '';
2223} // builtins.removeAttrs args ["stripLen"])