mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
treewide: extraPostFetch -> postFetch
This commit is contained in:
parent
5a6a31e54d
commit
b3caa2f1fe
@ -345,7 +345,7 @@ rec {
|
||||
src = fetchzip {
|
||||
url = "https://download.jboss.org/drools/release/${version}/droolsjbpm-tools-distribution-${version}.zip";
|
||||
sha512 = "2qzc1iszqfrfnw8xip78n3kp6hlwrvrr708vlmdk7nv525xhs0ssjaxriqdhcr0s6jripmmazxivv3763rnk2bfkh31hmbnckpx4r3m";
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
# update site is a couple levels deep, alongside some other irrelevant stuff
|
||||
cd $out;
|
||||
find . -type f -not -path ./binaries/org.drools.updatesite/\* -exec rm {} \;
|
||||
@ -507,7 +507,7 @@ rec {
|
||||
stripRoot = false;
|
||||
url = "https://github.com/${owner}/${repo}/archive/${rev}.zip";
|
||||
sha256 = "1xfj4j27d1h4bdf2v7f78zi8lz4zkkj7s9kskmsqx5jcs2d459yp";
|
||||
extraPostFetch =
|
||||
postFetch =
|
||||
''
|
||||
mv "$out/${repo}-${rev}/releases/local-repo/"* "$out/"
|
||||
'';
|
||||
|
@ -39,7 +39,7 @@ let
|
||||
rev = version;
|
||||
sha256 = "sha256-BoikYSsQZAv8WswIr5nmBsGmjZbTXaLAbdO2QtPvc7c=";
|
||||
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
mv $out ./all
|
||||
mv ./all/electrum/tests $out
|
||||
'';
|
||||
|
@ -38,7 +38,7 @@ let
|
||||
rev = version;
|
||||
sha256 = "sha256-oZjQnrnj8nCaQjrIz8bWNt6Ib8Wu2ZMXHEPfCCy2fjk=";
|
||||
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
mv $out ./all
|
||||
mv ./all/electrum_ltc/tests $out
|
||||
'';
|
||||
|
@ -15,7 +15,7 @@ rec {
|
||||
sha256 = "1zw9azwmxr4991nq5kl527lbwlj7psrissgvrkl1kxxbfbdncbhh";
|
||||
|
||||
stripRoot = false;
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
cd $out
|
||||
mv ring-project/* ./
|
||||
rm -r ring-project.rst ring-project client-android client-ios client-macosx client-uwp
|
||||
|
@ -6,7 +6,7 @@ let
|
||||
owner = "kogakure";
|
||||
repo = "gitweb-theme";
|
||||
rev = "049b88e664a359f8ec25dc6f531b7e2aa60dd1a2";
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
mkdir -p "$TMPDIR/gitwebTheme"
|
||||
mv "$out"/* "$TMPDIR/gitwebTheme/"
|
||||
mkdir "$out/static"
|
||||
|
@ -43,7 +43,7 @@ let
|
||||
repo = "rules_proto";
|
||||
rev = "f7a30f6f80006b591fa7c437fe5a951eb10bcbcf";
|
||||
sha256 = "10bcw0ir0skk7h33lmqm38n9w4nfs24mwajnngkbs6jb5wsvkqv8";
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
sed -i 's|name = "protoc"|name = "_protoc_original"|' $out/proto/private/BUILD.release
|
||||
cat <<EOF >>$out/proto/private/BUILD.release
|
||||
alias(name = "protoc", actual = "@com_github_protocolbuffers_protobuf//:protoc", visibility = ["//visibility:public"])
|
||||
|
@ -38,7 +38,7 @@ let
|
||||
fetch = fetchzip;
|
||||
arguments = baseArgs // {
|
||||
url = "${baseUrl}/archive/${rev}.tar.gz";
|
||||
extraPostFetch = optionalString (vc == "hg") ''
|
||||
postFetch = optionalString (vc == "hg") ''
|
||||
rm -f "$out/.hg_archival.txt"
|
||||
''; # impure file; see #12002
|
||||
};
|
||||
|
@ -1,25 +1,17 @@
|
||||
{ testers, fetchzip, ... }:
|
||||
|
||||
let
|
||||
zipUrl = "https://gist.github.com/glandium/01d54cefdb70561b5f6675e08f2990f2/archive/2f430f0c136a69b0886281d0c76708997d8878af.zip";
|
||||
url = "https://gist.github.com/glandium/01d54cefdb70561b5f6675e08f2990f2/archive/2f430f0c136a69b0886281d0c76708997d8878af.zip";
|
||||
in
|
||||
{
|
||||
simple = testers.invalidateFetcherByDrvHash fetchzip {
|
||||
inherit zipUrl;
|
||||
inherit url;
|
||||
sha256 = "sha256-0ecwgL8qUavSj1+WkaxpmRBmu7cvj53V5eXQV71fddU=";
|
||||
};
|
||||
|
||||
postFetch = testers.invalidateFetcherByDrvHash fetchzip {
|
||||
inherit zipUrl;
|
||||
inherit url;
|
||||
sha256 = "sha256-7sAOzKa+9vYx5XyndHxeY2ffWAjOsgCkXC9anK6cuV0=";
|
||||
postFetch = ''touch $out/filee'';
|
||||
};
|
||||
|
||||
#extraPostFetch = testers.invalidateFetcherByDrvHash fetchzip {
|
||||
# inherit url;
|
||||
# sha256 = "sha256-UC8oJqojqpjqa72UpT0QTME+UwQhVVk5/d9mgRPDR20=";
|
||||
# extraPostFetch = ''
|
||||
# touch $out/afile
|
||||
# '';
|
||||
#};
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "BESZ4Bjgm2hvQ7oPpMvYSlE8EqvQjqHZtXWIovqyIzA=";
|
||||
stripRoot = false;
|
||||
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
# Reset the timestamp to release date for determinism.
|
||||
PATH=${lib.makeBinPath [ python3.pkgs.fonttools ]}:$PATH
|
||||
for ttf_file in $out/Input_Fonts/*/*/*.ttf; do
|
||||
|
@ -32,7 +32,7 @@ let
|
||||
# without making a new release. We simply substitute the possibly changed fields
|
||||
# with their content from when we last updated, and thus get a deterministic output
|
||||
# hash.
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
echo "${metadata}" | base64 --decode > $out/metadata.json
|
||||
'';
|
||||
};
|
||||
|
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
||||
repo = "zasm";
|
||||
rev = version;
|
||||
sha256 = "sha256-Zbno8kmzss1H2FjwzHB4U7UXxa6oDfsPV80MVVFfM68=";
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
# remove folder containing files with weird names (causes the hash to turn out differently under macOS vs. Linux)
|
||||
rm -rv $out/Test
|
||||
'';
|
||||
|
@ -44,7 +44,7 @@ in stdenv.mkDerivation rec {
|
||||
"R-${fullVersion}/${pname}-${version}-${metadata.platform}.zip";
|
||||
inherit (metadata) sha256;
|
||||
stripRoot = false;
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
mkdir "$unpackDir"
|
||||
cd "$unpackDir"
|
||||
|
||||
|
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1cxj6r85d5f3qxdwzxrmkx8z875hig4cr8zsi30w6vj23cyds3l2";
|
||||
# Remove unicode file names which leads to different checksums on HFS+
|
||||
# vs. other filesystems because of unicode normalisation.
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
rm -r $out/test/e2e/unicode-pwd
|
||||
'';
|
||||
};
|
||||
|
@ -70,7 +70,7 @@ rec {
|
||||
Note: -f is necessary to keep it from being a pain to update
|
||||
hash on rev updates. Command will fail w/o and not print hash.
|
||||
*/
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
rm -rf Python-2.7.13 benchmarks metrics py-yajl rfc gold web testdata services demo devtools cpp
|
||||
'';
|
||||
};
|
||||
|
@ -29,7 +29,7 @@ buildPythonPackage rec {
|
||||
# Upstream uses versioneer, which relies on git attributes substitution.
|
||||
# This leads to non-reproducible archives on github. Remove the substituted
|
||||
# file here, and recreate it later based on our version info.
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
rm "$out/limits/_version.py"
|
||||
'';
|
||||
hash = "sha256-ja+YbRHCcZ5tFnoofdR44jbkkdDroVUdKeDOt6yE0LI=";
|
||||
|
@ -36,7 +36,7 @@ buildPythonPackage rec {
|
||||
# The content of .git_archival.txt is substituted upon tarball creation,
|
||||
# which creates indeterminism if master no longer points to the tag.
|
||||
# See https://github.com/jbarlow83/OCRmyPDF/issues/841
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
rm "$out/.git_archival.txt"
|
||||
'';
|
||||
hash = "sha256-uFKnohUxh17h6u0vwVB7EaTEh5NRowP8a6za63Ehodk=";
|
||||
|
@ -38,7 +38,7 @@ buildPythonPackage rec {
|
||||
hash = "sha256-ZBGzsyCtFt5uj9mpOpGdTzGJET0iwOAgDTy80P6anRU=";
|
||||
# Remove unicode file names which leads to different checksums on HFS+
|
||||
# vs. other filesystems because of unicode normalisation.
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
rm -r $out/pelican/tests/output/custom_locale/posts
|
||||
'';
|
||||
};
|
||||
|
@ -37,7 +37,7 @@ buildPythonPackage rec {
|
||||
# The content of .git_archival.txt is substituted upon tarball creation,
|
||||
# which creates indeterminism if master no longer points to the tag.
|
||||
# See https://github.com/jbarlow83/OCRmyPDF/issues/841
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
rm "$out/.git_archival.txt"
|
||||
'';
|
||||
hash = "sha256-jkAwc1bQ1jRDf/qY+xAjiLXXO98qKjyX+J7Lu4tYWoI=";
|
||||
|
@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||
# filesystems because of unicode normalisation. The documentation
|
||||
# has such files and will be removed.
|
||||
sha256 = "sha256-v1z6caEMJNXqbcbTmFXoy3KQewHiz6qK4vhNU6Qbukk=";
|
||||
extraPostFetch = "rm -rf $out/docs/reST";
|
||||
postFetch = "rm -rf $out/docs/reST";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
@ -40,7 +40,7 @@ buildPythonPackage rec {
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-Lw9yZWCQpt02SL/McWPcyFRfVhQHC0TejcYRbVw+VxY=";
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
cd $out
|
||||
mv tests/roots/test-images/testimäge.png \
|
||||
tests/roots/test-images/testimæge.png
|
||||
|
@ -16,7 +16,7 @@ buildPythonPackage rec {
|
||||
rev = version;
|
||||
sha256 = "sha256-JlTmUPY3yo/uROyd3nW1dJa23zbLhgQTwcmqZkPOrHs=";
|
||||
name = "${pname}-${version}-source";
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
cd $out
|
||||
mv tests/testdata/unicode.dist/unicodedist/åäö_日本語.py \
|
||||
tests/testdata/unicode.dist/unicodedist/æɐø_日本價.py
|
||||
|
@ -101,7 +101,7 @@ let
|
||||
else "0ixv9qyqq40pzyqy6v9jf5rxrvivjb0z0zn260nbmb9gk765bacy";
|
||||
stripRoot = false;
|
||||
# Removing PE signatures reduces this from 3.8GB -> 642MB (uncompressed)
|
||||
extraPostFetch = lib.optionalString (!withPEPatterns) ''
|
||||
postFetch = lib.optionalString (!withPEPatterns) ''
|
||||
rm -r "$out/generic/yara_patterns/static-code/pe"
|
||||
'';
|
||||
} // {
|
||||
|
@ -43,7 +43,7 @@ let
|
||||
callWithName = name: value: if isFunction value then value name else value;
|
||||
buildOpenRASet = f: args: pkgs.recurseIntoAttrs (mapAttrs callWithName (f ({
|
||||
inherit (pkgs) fetchFromGitHub;
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
sed -i 's/curl/curl --insecure/g' $out/thirdparty/{fetch-thirdparty-deps,noget}.sh
|
||||
$out/thirdparty/fetch-thirdparty-deps.sh
|
||||
'';
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ buildOpenRAEngine, fetchFromGitHub, extraPostFetch }:
|
||||
{ buildOpenRAEngine, fetchFromGitHub, postFetch }:
|
||||
|
||||
let
|
||||
buildUpstreamOpenRAEngine = { version, rev, sha256 }: name: (buildOpenRAEngine {
|
||||
@ -9,7 +9,7 @@ let
|
||||
src = fetchFromGitHub {
|
||||
owner = "OpenRA";
|
||||
repo = "OpenRA" ;
|
||||
inherit rev sha256 extraPostFetch;
|
||||
inherit rev sha256 postFetch;
|
||||
};
|
||||
} name).overrideAttrs (origAttrs: {
|
||||
postInstall = ''
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ buildOpenRAMod, fetchFromGitHub, extraPostFetch }:
|
||||
{ buildOpenRAMod, fetchFromGitHub, postFetch }:
|
||||
|
||||
let
|
||||
unsafeBuildOpenRAMod = attrs: name: (buildOpenRAMod attrs name).overrideAttrs (_: {
|
||||
@ -25,7 +25,7 @@ in {
|
||||
rev = "b8a7dd52ff893ed8225726d4ed4e14ecad748404";
|
||||
sha256 = "0dyk861qagibx8ldshz7d2nrki9q550f6f0wy8pvayvf1gv1dbxj";
|
||||
name = "engine";
|
||||
inherit extraPostFetch;
|
||||
inherit postFetch;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -50,7 +50,7 @@ in {
|
||||
rev = version;
|
||||
sha256 = "0p0izykjnz7pz02g2khp7msqa00jhjsrzk9y0g29dirmdv75qa4r";
|
||||
name = "engine";
|
||||
inherit extraPostFetch;
|
||||
inherit postFetch;
|
||||
};
|
||||
};
|
||||
assetsError = ''
|
||||
@ -78,7 +78,7 @@ in {
|
||||
rev = "f91d3f2603bbf51afaa89357e4defcdc36138102";
|
||||
sha256 = "05g900ri6q0zrkrk8rmjaz576vjggmi2y6jm0xz3cwli54prn11w";
|
||||
name = "engine";
|
||||
inherit extraPostFetch;
|
||||
inherit postFetch;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -102,7 +102,7 @@ in {
|
||||
rev = version;
|
||||
sha256 = "1x6byz37s8qcpqj902zvkvbv95rv2mv2kj35c12gbpyc92xkqkq0";
|
||||
name = "generals-alpha-engine";
|
||||
inherit extraPostFetch;
|
||||
inherit postFetch;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -127,7 +127,7 @@ in {
|
||||
rev = "4e8eab4ca00d1910203c8a103dfd2c002714daa8";
|
||||
sha256 = "1yyqparf93x8yzy1f46gsymgkj5jls25v2yc7ighr3f7mi3igdvq";
|
||||
name = "engine";
|
||||
inherit extraPostFetch;
|
||||
inherit postFetch;
|
||||
};
|
||||
};
|
||||
} name).overrideAttrs (origAttrs: {
|
||||
@ -156,7 +156,7 @@ in {
|
||||
rev = "52109c0910f479753704c46fb19e8afaab353c83";
|
||||
sha256 = "0ga3855j6bc7h81q03cw6laiaiz12915zg8aqah1idvxbzicfy7l";
|
||||
name = "engine";
|
||||
inherit extraPostFetch;
|
||||
inherit postFetch;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -180,7 +180,7 @@ in {
|
||||
rev = version;
|
||||
sha256 = "1pgi3zaq9fwwdq6yh19bwxscslqgabjxkvl9bcn1a5agy4bfbqk5";
|
||||
name = "engine";
|
||||
inherit extraPostFetch;
|
||||
inherit postFetch;
|
||||
};
|
||||
};
|
||||
assetsError = ''
|
||||
@ -208,7 +208,7 @@ in {
|
||||
rev = version;
|
||||
sha256 = "15pvn5cx3g0nzbrgpsfz8dngad5wkzp5dz25ydzn8bmxafiijvcr";
|
||||
name = "engine";
|
||||
inherit extraPostFetch;
|
||||
inherit postFetch;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -233,7 +233,7 @@ in {
|
||||
rev = "f3873ae242803051285994d77eb26f4b951594b5";
|
||||
sha256 = "02rv29wja0p5d083pd087daz7x7pp5b9ym7sci2fhg3mrnaqgwkp";
|
||||
name = "engine";
|
||||
inherit extraPostFetch;
|
||||
inherit postFetch;
|
||||
};
|
||||
};
|
||||
assetsError = ''
|
||||
@ -262,7 +262,7 @@ in {
|
||||
rev = "bb0930008a57c07f3002421023f6b446e3e3af69";
|
||||
sha256 = "1jvgpbf56hd02ikhklv49br4d1jiv5hphc5kl79qnjlaacnj222x";
|
||||
name = "engine";
|
||||
inherit extraPostFetch;
|
||||
inherit postFetch;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -286,7 +286,7 @@ in {
|
||||
rev = "6de92de8d982094a766eab97a92225c240d85493";
|
||||
sha256 = "0ps9x379plrrj1hnj4fpr26lc46mzgxknv5imxi0bmrh5y4781ql";
|
||||
name = "engine";
|
||||
inherit extraPostFetch;
|
||||
inherit postFetch;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -310,7 +310,7 @@ in {
|
||||
rev = version;
|
||||
sha256 = "1p5hgxxvxlz8480vj0qkmnxjh7zj3hahk312m0zljxfdb40652w1";
|
||||
name = "engine";
|
||||
inherit extraPostFetch;
|
||||
inherit postFetch;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -334,7 +334,7 @@ in {
|
||||
rev = version;
|
||||
sha256 = "15pvn5cx3g0nzbrgpsfz8dngad5wkzp5dz25ydzn8bmxafiijvcr";
|
||||
name = "engine";
|
||||
inherit extraPostFetch;
|
||||
inherit postFetch;
|
||||
};
|
||||
};
|
||||
assetsError = ''
|
||||
|
@ -32,7 +32,7 @@ let
|
||||
*/
|
||||
buildOpenRASet = f: args: builtins.mapAttrs (name: value: if builtins.isFunction value then value name else value) (f ({
|
||||
inherit (pkgs) fetchFromGitHub;
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
sed -i 's/curl/curl --insecure/g' $out/thirdparty/{fetch-thirdparty-deps,noget}.sh
|
||||
$out/thirdparty/fetch-thirdparty-deps.sh
|
||||
'';
|
||||
|
@ -147,7 +147,7 @@ in rec {
|
||||
name = "xonotic-data";
|
||||
url = "https://dl.xonotic.org/xonotic-${version}.zip";
|
||||
sha256 = "15caj11v9hhr7w55w3rs1rspblzr9lg1crqivbn9pyyq0rif8cpl";
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
cd $out
|
||||
rm -rf $(ls | grep -v "^data$" | grep -v "^key_0.d0pk$")
|
||||
'';
|
||||
|
@ -22,7 +22,7 @@ let
|
||||
rev = "fb9f2b7bc9fcba954d70f63857cc0c3841b1cf47";
|
||||
sha256 = "1arkbpbzvhcmz5fhjqg34x2jbjnwmlisapk22rjki17qpamh7zks";
|
||||
# ncdns must be put in a subdirectory for this to work.
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
cp -r --no-preserve=mode "${ncdns}" "$out/ncdns"
|
||||
'';
|
||||
};
|
||||
|
@ -37,7 +37,7 @@ buildBazelPackage rec {
|
||||
inherit (srcVer) rev;
|
||||
hash = "sha256:11mm72zmb479ss585jzqzhklyyqmdadnvr91ghzvjxc0j2a1hrr4";
|
||||
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
chmod -R +w $out
|
||||
rm $out/.bazelversion
|
||||
echo ${srcVer.rev} > $out/SOURCE_VERSION
|
||||
|
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
|
||||
# > the license requires that you agree to these use restrictions,
|
||||
# > or you must remove the software (source and binary) from your hard disks
|
||||
# https://fedoraproject.org/wiki/Licensing:Unrar
|
||||
extraPostFetch = lib.optionalString (!enableUnfree) ''
|
||||
postFetch = lib.optionalString (!enableUnfree) ''
|
||||
rm -r $out/CPP/7zip/Compress/Rar*
|
||||
find $out -name makefile'*' -exec sed -i '/Rar/d' {} +
|
||||
'';
|
||||
|
@ -49,7 +49,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-ffDJJWe/SzG+lppXEiyfXXL5KLdZgnMjv1SYnuYnh4c=";
|
||||
# Remove unicode file names which leads to different checksums on HFS+
|
||||
# vs. other filesystems because of unicode normalisation.
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
rm -r $out/test/test-suite/images/
|
||||
'';
|
||||
};
|
||||
|
@ -13,7 +13,7 @@ rustPlatform.buildRustPackage rec {
|
||||
sha256 = "sha256-dpkUbZz/bIiTMhZalXHGct77qMzYB6LATs7MPVyW1GY=";
|
||||
# Remove unicode file names which leads to different checksums on HFS+
|
||||
# vs. other filesystems because of unicode normalisation.
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
rm -r $out/tests/fixtures
|
||||
'';
|
||||
};
|
||||
|
@ -11,7 +11,7 @@ rustPlatform.buildRustPackage rec {
|
||||
sha256 = "sha256-qC8AlLyg8MU9ZON0hITTaM5AmRFZMOqJVt7PJ5fCtus=";
|
||||
# Remove unicode file names which leads to different checksums on HFS+
|
||||
# vs. other filesystems because of unicode normalisation.
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
rm -r $out/tests/test_dir_unicode/
|
||||
'';
|
||||
};
|
||||
|
@ -11,7 +11,7 @@ rustPlatform.buildRustPackage rec {
|
||||
sha256 = "17lm8jd07bi499mywg2iq669im34j4x4yhc8a3adxn12f8j0dfg7";
|
||||
# test directory has files with unicode names which causes hash mismatches
|
||||
# It is also not used by any tests or parts of build process
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
rm -r $out/test
|
||||
'';
|
||||
};
|
||||
|
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||
# Unicode file names lead to different checksums on HFS+ vs. other
|
||||
# filesystems because of unicode normalisation. The testdir
|
||||
# directories have such files and will be removed.
|
||||
extraPostFetch = "rm -r $out/testdir";
|
||||
postFetch = "rm -r $out/testdir";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
|
@ -18,7 +18,7 @@ buildGo118Module rec {
|
||||
# The package architecture does not matter since all packages contain identical mutagen-agents.tar.gz.
|
||||
url = "https://github.com/mutagen-io/mutagen/releases/download/v${version}/mutagen_linux_amd64_v${version}.tar.gz";
|
||||
stripRoot = false;
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
rm $out/mutagen # Keep only mutagen-agents.tar.gz.
|
||||
'';
|
||||
sha256 = "sha256-AlAo55/ewTE04WfS0beVonGA97AmpR1pAw/QxKAYjv8=";
|
||||
|
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||
rev = version;
|
||||
sha256 = "0bwv6x651gyq703pywrhb7lfby6xwnd1iwnrzzjihipn7x3v2hz9";
|
||||
# the stat call has to be in a subshell or we get the current date
|
||||
extraPostFetch = ''
|
||||
postFetch = ''
|
||||
echo $(stat -c %Y $out) > $out/.timestamp
|
||||
'';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user