about summary refs log tree commit diff
path: root/pkgs/development/libraries/libewf
diff options
context:
space:
mode:
authorajs124 <git@ajs124.de>2022-06-15 18:27:08 +0200
committerajs124 <git@ajs124.de>2022-08-17 20:16:21 +0200
commit9601981023536af15822c11673d8891c9e1a26d1 (patch)
tree80db32f69b0e1b4e0fdb76eeeb689aa932d3e2eb /pkgs/development/libraries/libewf
parent35099b99b018338d0c5b5a538e81c1b135e6f01c (diff)
libewf: fix build with OpenSSL 3.0
Diffstat (limited to 'pkgs/development/libraries/libewf')
-rw-r--r--pkgs/development/libraries/libewf/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libewf/default.nix b/pkgs/development/libraries/libewf/default.nix
index 1935c7d947ffc..c7311d166b33a 100644
--- a/pkgs/development/libraries/libewf/default.nix
+++ b/pkgs/development/libraries/libewf/default.nix
@@ -1,4 +1,4 @@
-{ fetchurl, lib, stdenv, zlib, openssl, libuuid, pkg-config, bzip2 }:
+{ fetchurl, fetchpatch, lib, stdenv, zlib, openssl, libuuid, pkg-config, bzip2 }:
 
 stdenv.mkDerivation rec {
   version = "20201230";
@@ -6,9 +6,17 @@ stdenv.mkDerivation rec {
 
   src = fetchurl {
     url = "https://github.com/libyal/libewf/releases/download/${version}/libewf-experimental-${version}.tar.gz";
-    sha256 = "sha256-10r4jPzsA30nHQzjdg/VkwTG1PwOskwv8Bra34ZPMgc=";
+    hash = "sha256-10r4jPzsA30nHQzjdg/VkwTG1PwOskwv8Bra34ZPMgc=";
   };
 
+  patches = [
+    # fix build with OpenSSL 3.0
+    (fetchpatch {
+      url = "https://github.com/libyal/libewf/commit/033ea5b4e5f8f1248f74a2ec61fc1be183c6c46b.patch";
+      hash = "sha256-R4+NO/91kiZP48SJyVF9oYjKCg1h/9Kh8/0VOEmJXPQ=";
+    })
+  ];
+
   nativeBuildInputs = [ pkg-config ];
   buildInputs = [ zlib openssl libuuid ]
     ++ lib.optionals stdenv.isDarwin [ bzip2 ];