diff options
author | Matthew Glazar <strager.nds@gmail.com> | 2019-06-02 23:13:21 -0700 |
---|---|---|
committer | Matthew Glazar <strager.nds@gmail.com> | 2019-06-03 09:14:41 -0700 |
commit | 74bb653916d4f7ccae975f5103ed7d6385a99e31 (patch) | |
tree | 0b163e6199da87e1d7a54f70c037f0e2ae7ad90f /pkgs/tools/backup/duplicity | |
parent | 071167e6a93ef8e8aa9a2a29d81aadb68db1a8e1 (diff) | |
download | nixpkgs-74bb653916d4f7ccae975f5103ed7d6385a99e31.tar nixpkgs-74bb653916d4f7ccae975f5103ed7d6385a99e31.tar.gz nixpkgs-74bb653916d4f7ccae975f5103ed7d6385a99e31.tar.bz2 nixpkgs-74bb653916d4f7ccae975f5103ed7d6385a99e31.tar.lz nixpkgs-74bb653916d4f7ccae975f5103ed7d6385a99e31.tar.xz nixpkgs-74bb653916d4f7ccae975f5103ed7d6385a99e31.tar.zst nixpkgs-74bb653916d4f7ccae975f5103ed7d6385a99e31.zip |
duplicity: speed up testing
Apply some upstream duplicity patches which optimize installCheckPhase. On my laptop, this lowers duplicity's total build time from 8 m 42 s to 6 m 50 s (-21%).
Diffstat (limited to 'pkgs/tools/backup/duplicity')
-rw-r--r-- | pkgs/tools/backup/duplicity/default.nix | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/pkgs/tools/backup/duplicity/default.nix b/pkgs/tools/backup/duplicity/default.nix index 360fef6df38..c2eb56986fd 100644 --- a/pkgs/tools/backup/duplicity/default.nix +++ b/pkgs/tools/backup/duplicity/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, python2Packages, librsync, ncftp, gnupg +{ stdenv, fetchpatch, fetchurl, python2Packages, librsync, ncftp, gnupg , gnutar , par2cmdline , utillinux @@ -15,6 +15,26 @@ python2Packages.buildPythonApplication rec { patches = [ ./gnutar-in-test.patch ./use-installed-scripts-in-test.patch + + # The following patches improve the performance of installCheckPhase: + # Ensure all duplicity output is captured in tests + (fetchpatch { + extraPrefix = ""; + sha256 = "07ay3mmnw8p2j3v8yvcpjsx0rf2jqly9ablwjpmry23dz9f0mxsd"; + url = "https://bazaar.launchpad.net/~duplicity-team/duplicity/0.8-series/diff/1359.2.1"; + }) + # Minimize time spent sleeping between backups + (fetchpatch { + extraPrefix = ""; + sha256 = "0v99q6mvikb8sf68gh3s0zg12pq8fijs87fv1qrvdnc8zvs4pmfs"; + url = "https://bazaar.launchpad.net/~duplicity-team/duplicity/0.8-series/diff/1359.2.2"; + }) + # Remove unnecessary sleeping after running backups in tests + (fetchpatch { + extraPrefix = ""; + sha256 = "1bmgp4ilq2gwz2k73fxrqplf866hj57lbyabaqpkvwxhr0ch1jiq"; + url = "https://bazaar.launchpad.net/~duplicity-team/duplicity/0.8-series/diff/1359.2.3"; + }) ] ++ stdenv.lib.optionals stdenv.isLinux [ ./linux-disable-timezone-test.patch ]; |