about summary refs log tree commit diff
path: root/pkgs/development/libraries/xxHash
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2022-06-16 10:35:54 +0300
committerVladimír Čunát <v@cunat.cz>2022-06-16 14:53:43 +0200
commit20972d657edef0cab6f1ef2d6e99d88fd93bed16 (patch)
treee9faf59571f6775be3deb3cde7e0a7ef8d507435 /pkgs/development/libraries/xxHash
parent29e7966a7d31e8071fb1b2beeb4f10479686b9a7 (diff)
xxHash: add pkg-config file fix, clean up a bit
Diffstat (limited to 'pkgs/development/libraries/xxHash')
-rw-r--r--pkgs/development/libraries/xxHash/default.nix16
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/development/libraries/xxHash/default.nix b/pkgs/development/libraries/xxHash/default.nix
index 336dd5b325768..d5a8df6f437e6 100644
--- a/pkgs/development/libraries/xxHash/default.nix
+++ b/pkgs/development/libraries/xxHash/default.nix
@@ -2,7 +2,7 @@
 , stdenv
 , fetchFromGitHub
 , cmake
-, fetchurl
+, fetchpatch
 }:
 
 stdenv.mkDerivation rec {
@@ -16,13 +16,21 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-2WoYCO6QRHWrbGP2mK04/sLNTyQLOuL3urVktilAwMA=";
   };
 
+  # CMake build fixes
   patches = [
     # Merged in https://github.com/Cyan4973/xxHash/pull/649
     # Should be present in next release
-    (fetchurl {
-      name = "cmakeinstallfix.patch";
+    (fetchpatch {
+      name = "cmake-install-fix";
       url = "https://github.com/Cyan4973/xxHash/commit/636f966ecc713c84ddd3b7ccfde2bfb2cc7492a0.patch";
-      hash = "sha256-fj+5V5mDhFgWGvrG1E4fEekL4eh7as0ouVvY4wnIHjs=";
+      sha256 = "sha256-B1PZ/0BXlOrSiPvgCPLvI/sjQvnR0n5PQHOO38LOij0=";
+    })
+
+    # Submitted at https://github.com/Cyan4973/xxHash/pull/723
+    (fetchpatch {
+      name = "cmake-pkgconfig-fix";
+      url = "https://github.com/Cyan4973/xxHash/commit/5db353bbd05ee5eb1f90afc08d10da9416154e55.patch";
+      sha256 = "sha256-dElgSu9DVo2hY6TTVHLTtt0zkXmQV3nc9i/KbrDkK8s=";
     })
   ];