@@ -14,7 +14,7 @@
1414, name ? "source"
1515, ... } @ args:
1616
17−lib.overrideDerivation (fetchurl ({
17+(fetchurl ({
1818 inherit name;
1919
2020 recursiveHash = true;
@@ -23,8 +23,6 @@ lib.overrideDerivation (fetchurl ({
2323
2424 postFetch =
2525 ''
26− export PATH=${unzip}/bin:$PATH
27−
2826 unpackDir="$TMPDIR/unpack"
2927 mkdir "$unpackDir"
3028 cd "$unpackDir"
@@ -48,6 +46,7 @@ lib.overrideDerivation (fetchurl ({
4846 mv "$unpackDir" "$out"
4947 '') #*/
5048 + extraPostFetch;
51−} // removeAttrs args [ "stripRoot" "extraPostFetch" ]))
52−# Hackety-hack: we actually need unzip hooks, too
53−(x: {nativeBuildInputs = x.nativeBuildInputs++ [unzip];})
49+} // removeAttrs args [ "stripRoot" "extraPostFetch" ])).overrideAttrs (x: {
50+ # Hackety-hack: we actually need unzip hooks, too
51+ nativeBuildInputs = x.nativeBuildInputs ++ [ unzip ];
52+})