summary refs log tree commit diff
path: root/pkgs/development/libraries/afflib/default.nix
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2011-08-02 19:46:28 +0000
committerMichael Raskin <7c6f434c@mail.ru>2011-08-02 19:46:28 +0000
commit87554657c1a6059967fd4b815ec5ca5b8deb9b47 (patch)
tree88cc316cdcf4b4036ee36503193960c798b83a7f /pkgs/development/libraries/afflib/default.nix
parent9d04057b112043ee550ffd404d82541947b84ccb (diff)
downloadnixpkgs-87554657c1a6059967fd4b815ec5ca5b8deb9b47.tar
nixpkgs-87554657c1a6059967fd4b815ec5ca5b8deb9b47.tar.gz
nixpkgs-87554657c1a6059967fd4b815ec5ca5b8deb9b47.tar.bz2
nixpkgs-87554657c1a6059967fd4b815ec5ca5b8deb9b47.tar.lz
nixpkgs-87554657c1a6059967fd4b815ec5ca5b8deb9b47.tar.xz
nixpkgs-87554657c1a6059967fd4b815ec5ca5b8deb9b47.tar.zst
nixpkgs-87554657c1a6059967fd4b815ec5ca5b8deb9b47.zip
Adding afflib
svn path=/nixpkgs/trunk/; revision=28129
Diffstat (limited to 'pkgs/development/libraries/afflib/default.nix')
-rw-r--r--pkgs/development/libraries/afflib/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/development/libraries/afflib/default.nix b/pkgs/development/libraries/afflib/default.nix
new file mode 100644
index 00000000000..a5fdafe7914
--- /dev/null
+++ b/pkgs/development/libraries/afflib/default.nix
@@ -0,0 +1,48 @@
+x@{builderDefsPackage
+  , libewf, zlib, curl, expat, fuse, openssl
+  , ...}:
+builderDefsPackage
+(a :  
+let 
+  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
+    [];
+
+  buildInputs = map (n: builtins.getAttr n x)
+    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
+  sourceInfo = rec {
+    baseName="afflib";
+    version="3.6.12";
+    name="${baseName}-${version}";
+    url="http://afflib.org/downloads/${name}.tar.gz";
+    hash="1l13nrqjlvad112543qbyvrzai5by43zl96d3miklrhn26q9rs07";
+  };
+in
+rec {
+  src = a.fetchurl {
+    url = sourceInfo.url;
+    sha256 = sourceInfo.hash;
+  };
+
+  inherit (sourceInfo) name version;
+  inherit buildInputs;
+
+  /* doConfigure should be removed if not needed */
+  phaseNames = ["doConfigure" "doMakeInstall"];
+      
+  meta = {
+    description = "Advanced forensic format library";
+    maintainers = with a.lib.maintainers;
+    [
+      raskin
+    ];
+    platforms = with a.lib.platforms;
+      linux;
+    license = a.lib.licenses.bsdOriginal;
+  };
+  passthru = {
+    updateInfo = {
+      downloadPage = "http://afflib.org/";
+    };
+  };
+}) x
+