···3232 # without making a new release. We simply substitute the possibly changed fields
3333 # with their content from when we last updated, and thus get a deterministic output
3434 # hash.
3535- extraPostFetch = ''
3535+ postFetch = ''
3636 echo "${metadata}" | base64 --decode > $out/metadata.json
3737 '';
3838 };
+1-1
pkgs/development/compilers/zasm/default.nix
···1717 repo = "zasm";
1818 rev = version;
1919 sha256 = "sha256-Zbno8kmzss1H2FjwzHB4U7UXxa6oDfsPV80MVVFfM68=";
2020- extraPostFetch = ''
2020+ postFetch = ''
2121 # remove folder containing files with weird names (causes the hash to turn out differently under macOS vs. Linux)
2222 rm -rv $out/Test
2323 '';
···1111 sha256 = "1cxj6r85d5f3qxdwzxrmkx8z875hig4cr8zsi30w6vj23cyds3l2";
1212 # Remove unicode file names which leads to different checksums on HFS+
1313 # vs. other filesystems because of unicode normalisation.
1414- extraPostFetch = ''
1414+ postFetch = ''
1515 rm -r $out/test/e2e/unicode-pwd
1616 '';
1717 };
+1-1
pkgs/development/misc/resholve/oildev.nix
···7070 Note: -f is necessary to keep it from being a pain to update
7171 hash on rev updates. Command will fail w/o and not print hash.
7272 */
7373- extraPostFetch = ''
7373+ postFetch = ''
7474 rm -rf Python-2.7.13 benchmarks metrics py-yajl rfc gold web testdata services demo devtools cpp
7575 '';
7676 };
···2929 # Upstream uses versioneer, which relies on git attributes substitution.
3030 # This leads to non-reproducible archives on github. Remove the substituted
3131 # file here, and recreate it later based on our version info.
3232- extraPostFetch = ''
3232+ postFetch = ''
3333 rm "$out/limits/_version.py"
3434 '';
3535 hash = "sha256-ja+YbRHCcZ5tFnoofdR44jbkkdDroVUdKeDOt6yE0LI=";
···3636 # The content of .git_archival.txt is substituted upon tarball creation,
3737 # which creates indeterminism if master no longer points to the tag.
3838 # See https://github.com/jbarlow83/OCRmyPDF/issues/841
3939- extraPostFetch = ''
3939+ postFetch = ''
4040 rm "$out/.git_archival.txt"
4141 '';
4242 hash = "sha256-uFKnohUxh17h6u0vwVB7EaTEh5NRowP8a6za63Ehodk=";
···3737 # The content of .git_archival.txt is substituted upon tarball creation,
3838 # which creates indeterminism if master no longer points to the tag.
3939 # See https://github.com/jbarlow83/OCRmyPDF/issues/841
4040- extraPostFetch = ''
4040+ postFetch = ''
4141 rm "$out/.git_archival.txt"
4242 '';
4343 hash = "sha256-jkAwc1bQ1jRDf/qY+xAjiLXXO98qKjyX+J7Lu4tYWoI=";
···1515 # filesystems because of unicode normalisation. The documentation
1616 # has such files and will be removed.
1717 sha256 = "sha256-v1z6caEMJNXqbcbTmFXoy3KQewHiz6qK4vhNU6Qbukk=";
1818- extraPostFetch = "rm -rf $out/docs/reST";
1818+ postFetch = "rm -rf $out/docs/reST";
1919 };
20202121 patches = [
···2222 rev = "fb9f2b7bc9fcba954d70f63857cc0c3841b1cf47";
2323 sha256 = "1arkbpbzvhcmz5fhjqg34x2jbjnwmlisapk22rjki17qpamh7zks";
2424 # ncdns must be put in a subdirectory for this to work.
2525- extraPostFetch = ''
2525+ postFetch = ''
2626 cp -r --no-preserve=mode "${ncdns}" "$out/ncdns"
2727 '';
2828 };
···1616 # > the license requires that you agree to these use restrictions,
1717 # > or you must remove the software (source and binary) from your hard disks
1818 # https://fedoraproject.org/wiki/Licensing:Unrar
1919- extraPostFetch = lib.optionalString (!enableUnfree) ''
1919+ postFetch = lib.optionalString (!enableUnfree) ''
2020 rm -r $out/CPP/7zip/Compress/Rar*
2121 find $out -name makefile'*' -exec sed -i '/Rar/d' {} +
2222 '';
+1-1
pkgs/tools/graphics/vips/default.nix
···4949 sha256 = "sha256-ffDJJWe/SzG+lppXEiyfXXL5KLdZgnMjv1SYnuYnh4c=";
5050 # Remove unicode file names which leads to different checksums on HFS+
5151 # vs. other filesystems because of unicode normalisation.
5252- extraPostFetch = ''
5252+ postFetch = ''
5353 rm -r $out/test/test-suite/images/
5454 '';
5555 };
+1-1
pkgs/tools/misc/dua/default.nix
···1313 sha256 = "sha256-dpkUbZz/bIiTMhZalXHGct77qMzYB6LATs7MPVyW1GY=";
1414 # Remove unicode file names which leads to different checksums on HFS+
1515 # vs. other filesystems because of unicode normalisation.
1616- extraPostFetch = ''
1616+ postFetch = ''
1717 rm -r $out/tests/fixtures
1818 '';
1919 };
+1-1
pkgs/tools/misc/dust/default.nix
···1111 sha256 = "sha256-qC8AlLyg8MU9ZON0hITTaM5AmRFZMOqJVt7PJ5fCtus=";
1212 # Remove unicode file names which leads to different checksums on HFS+
1313 # vs. other filesystems because of unicode normalisation.
1414- extraPostFetch = ''
1414+ postFetch = ''
1515 rm -r $out/tests/test_dir_unicode/
1616 '';
1717 };
+1-1
pkgs/tools/misc/dutree/default.nix
···1111 sha256 = "17lm8jd07bi499mywg2iq669im34j4x4yhc8a3adxn12f8j0dfg7";
1212 # test directory has files with unicode names which causes hash mismatches
1313 # It is also not used by any tests or parts of build process
1414- extraPostFetch = ''
1414+ postFetch = ''
1515 rm -r $out/test
1616 '';
1717 };
+1-1
pkgs/tools/misc/jdupes/default.nix
···1212 # Unicode file names lead to different checksums on HFS+ vs. other
1313 # filesystems because of unicode normalisation. The testdir
1414 # directories have such files and will be removed.
1515- extraPostFetch = "rm -r $out/testdir";
1515+ postFetch = "rm -r $out/testdir";
1616 };
17171818 dontConfigure = true;
+1-1
pkgs/tools/misc/mutagen/default.nix
···1818 # The package architecture does not matter since all packages contain identical mutagen-agents.tar.gz.
1919 url = "https://github.com/mutagen-io/mutagen/releases/download/v${version}/mutagen_linux_amd64_v${version}.tar.gz";
2020 stripRoot = false;
2121- extraPostFetch = ''
2121+ postFetch = ''
2222 rm $out/mutagen # Keep only mutagen-agents.tar.gz.
2323 '';
2424 sha256 = "sha256-AlAo55/ewTE04WfS0beVonGA97AmpR1pAw/QxKAYjv8=";
···1212 rev = version;
1313 sha256 = "0bwv6x651gyq703pywrhb7lfby6xwnd1iwnrzzjihipn7x3v2hz9";
1414 # the stat call has to be in a subshell or we get the current date
1515- extraPostFetch = ''
1515+ postFetch = ''
1616 echo $(stat -c %Y $out) > $out/.timestamp
1717 '';
1818 };