2024-06-05 15:53:02 +00:00
|
|
|
{ fetchurl, lib, stdenv, zlib, openssl, libuuid, pkg-config, bzip2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "20231119";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "libewf";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/libyal/libewf/releases/download/${version}/libewf-experimental-${version}.tar.gz";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-7AjUEaXasOzJV9ErZK2a4HMTaqhcBbLKd8M+A5SbKrc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = [ zlib openssl libuuid ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ bzip2 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
# cannot run test program while cross compiling
|
|
|
|
configureFlags = lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
|
|
|
"ac_cv_openssl_xts_duplicate_keys=yes"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "Library for support of the Expert Witness Compression Format";
|
|
|
|
homepage = "https://sourceforge.net/projects/libewf/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
maintainers = [ lib.maintainers.raskin ] ;
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|