From 2a0f9cffe9a2965f0f5a712a85c5ee33d287f4bd Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Tue, 2 Jan 2024 21:18:54 +0100 Subject: [PATCH 1/2] libewf-legacy: init at 20140814 --- .../libraries/libewf-legacy/default.nix | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkgs/development/libraries/libewf-legacy/default.nix diff --git a/pkgs/development/libraries/libewf-legacy/default.nix b/pkgs/development/libraries/libewf-legacy/default.nix new file mode 100644 index 000000000000..dd167b909f1b --- /dev/null +++ b/pkgs/development/libraries/libewf-legacy/default.nix @@ -0,0 +1,32 @@ +{ lib +, fetchurl +, fetchpatch +, stdenv +, zlib +, openssl +, libuuid +, pkg-config +, bzip2 +}: + +stdenv.mkDerivation rec { + version = "20140814"; + pname = "libewf-ewf"; + + src = fetchurl { + url = "https://github.com/libyal/libewf-legacy/releases/download/${version}/libewf-${version}.tar.gz"; + hash = "sha256-OM3QXwnaIDeo66UNjzmu6to53SxgCMn/rE9VTPlX5BQ="; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ zlib openssl libuuid ] + ++ lib.optionals stdenv.isDarwin [ bzip2 ]; + + meta = { + description = "Legacy library for support of the Expert Witness Compression Format"; + homepage = "https://sourceforge.net/projects/libewf/"; + license = lib.licenses.lgpl3; + maintainers = with lib.maintainers; [ d3vil0p3r ]; + platforms = lib.platforms.unix; + }; +} From ff55b5d7e194f0cbd4c7200202934ffd4069e420 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Tue, 9 Jan 2024 21:44:01 +0100 Subject: [PATCH 2/2] Update pkgs/development/libraries/libewf-legacy/default.nix Co-authored-by: Sandro --- pkgs/development/libraries/libewf-legacy/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libewf-legacy/default.nix b/pkgs/development/libraries/libewf-legacy/default.nix index dd167b909f1b..4cfbceb0089c 100644 --- a/pkgs/development/libraries/libewf-legacy/default.nix +++ b/pkgs/development/libraries/libewf-legacy/default.nix @@ -10,8 +10,8 @@ }: stdenv.mkDerivation rec { - version = "20140814"; pname = "libewf-ewf"; + version = "20140814"; src = fetchurl { url = "https://github.com/libyal/libewf-legacy/releases/download/${version}/libewf-${version}.tar.gz";