about summary refs log tree commit diff
path: root/pkgs/tools/archivers/p7zip
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2017-07-03 08:19:20 +0200
committerVladimír Čunát <vcunat@gmail.com>2017-07-03 08:19:20 +0200
commit6cad339a0eb0d052c8f5e4a88ce89c49792feee5 (patch)
tree8ed74b6fbba959135e5b0374f552a7820f2e6cfd /pkgs/tools/archivers/p7zip
parent674e46d643a46eda2079b7cc387f3f34da796831 (diff)
downloadnixlib-6cad339a0eb0d052c8f5e4a88ce89c49792feee5.tar
nixlib-6cad339a0eb0d052c8f5e4a88ce89c49792feee5.tar.gz
nixlib-6cad339a0eb0d052c8f5e4a88ce89c49792feee5.tar.bz2
nixlib-6cad339a0eb0d052c8f5e4a88ce89c49792feee5.tar.lz
nixlib-6cad339a0eb0d052c8f5e4a88ce89c49792feee5.tar.xz
nixlib-6cad339a0eb0d052c8f5e4a88ce89c49792feee5.tar.zst
nixlib-6cad339a0eb0d052c8f5e4a88ce89c49792feee5.zip
p7zip: add commit ID to the patch
We still do mirror the patch (I think), as `nix-build -Q -A p7zip.patches`
downloaded it on my machine.  I verified that only the diff headers differ;
it's still better to have another working download and Fedora's URLs are
less likely to disappear than Debian's.
/cc #27075.
Diffstat (limited to 'pkgs/tools/archivers/p7zip')
-rw-r--r--pkgs/tools/archivers/p7zip/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/tools/archivers/p7zip/default.nix b/pkgs/tools/archivers/p7zip/default.nix
index 8d6216cb5ac3..3550b7d7de36 100644
--- a/pkgs/tools/archivers/p7zip/default.nix
+++ b/pkgs/tools/archivers/p7zip/default.nix
@@ -10,8 +10,9 @@ stdenv.mkDerivation rec {
   };
 
   patches = [
-    (fetchpatch {
-      url = "https://src.fedoraproject.org/cgit/rpms/p7zip.git/plain/CVE-2016-9296.patch";
+    (fetchpatch rec {
+      name = "CVE-2016-9296.patch";
+      url = "https://src.fedoraproject.org/cgit/rpms/p7zip.git/plain/${name}?id=4b3973f6a5d";
       sha256 = "09wbkzai46bwm8zmplsz0m4jck3qn7snr68i9p1gsih300zidj0m";
     })
   ];