mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 09:17:34 +00:00
libewf: fix build with OpenSSL 3.0
This commit is contained in:
parent
35099b99b0
commit
9601981023
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user