about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/li/libewf-legacy/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/by-name/li/libewf-legacy/package.nix')
-rw-r--r--nixpkgs/pkgs/by-name/li/libewf-legacy/package.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/li/libewf-legacy/package.nix b/nixpkgs/pkgs/by-name/li/libewf-legacy/package.nix
new file mode 100644
index 000000000000..f6505afdacec
--- /dev/null
+++ b/nixpkgs/pkgs/by-name/li/libewf-legacy/package.nix
@@ -0,0 +1,32 @@
+{ lib
+, fetchurl
+, fetchpatch
+, stdenv
+, zlib
+, openssl
+, libuuid
+, pkg-config
+, bzip2
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "libewf-legacy";
+  version = "20140814";
+
+  src = fetchurl {
+    url = "https://github.com/libyal/libewf-legacy/releases/download/${finalAttrs.version}/libewf-${finalAttrs.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;
+  };
+})