about summary refs log tree commit diff
path: root/pkgs/tools/system/sleuthkit
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-18 13:44:30 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-18 13:45:18 +0200
commit2402a250a17c41c429dae423fb496127c0797a44 (patch)
tree659d446799da4dc8811818e99dcf16bf3d455121 /pkgs/tools/system/sleuthkit
parent2087f8dec3bcf34452a12125c49cb4fae0ec6655 (diff)
downloadnixlib-2402a250a17c41c429dae423fb496127c0797a44.tar
nixlib-2402a250a17c41c429dae423fb496127c0797a44.tar.gz
nixlib-2402a250a17c41c429dae423fb496127c0797a44.tar.bz2
nixlib-2402a250a17c41c429dae423fb496127c0797a44.tar.lz
nixlib-2402a250a17c41c429dae423fb496127c0797a44.tar.xz
nixlib-2402a250a17c41c429dae423fb496127c0797a44.tar.zst
nixlib-2402a250a17c41c429dae423fb496127c0797a44.zip
sleuthkit: Rewrite to mkDerivation
Diffstat (limited to 'pkgs/tools/system/sleuthkit')
-rw-r--r--pkgs/tools/system/sleuthkit/default.nix56
1 files changed, 16 insertions, 40 deletions
diff --git a/pkgs/tools/system/sleuthkit/default.nix b/pkgs/tools/system/sleuthkit/default.nix
index 86ec54ecb8fa..0148e3c699eb 100644
--- a/pkgs/tools/system/sleuthkit/default.nix
+++ b/pkgs/tools/system/sleuthkit/default.nix
@@ -1,48 +1,24 @@
-x@{builderDefsPackage
-  , libewf, afflib, openssl, zlib
-  , ...}:
-builderDefsPackage
-(a :  
-let 
-  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
-    [];
+{ stdenv, fetchurl, libewf, afflib, openssl, zlib }:
 
-  buildInputs = map (n: builtins.getAttr n x)
-    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
-  sourceInfo = rec {
-    baseName="sleuthkit";
-    version="3.2.2";
-    name="${baseName}-${version}";
-    url="mirror://sourceforge/project/${baseName}/${baseName}/${version}/${name}.tar.gz";
-    hash="02hik5xvbgh1dpisvc3wlhhq1aprnlsk0spbw6h5khpbq9wqnmgj";
-  };
-in
-rec {
-  src = a.fetchurl {
-    url = sourceInfo.url;
-    sha256 = sourceInfo.hash;
+stdenv.mkDerivation rec {
+  name = "sleuthkit-3.2.2";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/sleuthkit/${name}.tar.gz";
+    sha256 = "02hik5xvbgh1dpisvc3wlhhq1aprnlsk0spbw6h5khpbq9wqnmgj";
   };
 
-  inherit (sourceInfo) name version;
-  inherit buildInputs;
+  enableParallelBuilding = true;
+
+  buildInputs = [ libewf afflib openssl zlib ];
+
+  # Hack to fix the RPATH.
+  preFixup = "rm -rf */.libs";
 
-  /* doConfigure should be removed if not needed */
-  phaseNames = ["doConfigure" "doMakeInstall"];
-      
   meta = {
     description = "A forensic/data recovery tool";
-    maintainers = with a.lib.maintainers;
-    [
-      raskin
-    ];
-    platforms = with a.lib.platforms;
-      linux;
+    maintainers = [ stdenv.lib.maintainers.raskin ];
+    platforms = stdenv.lib.platforms.linux;
     license = "IBM Public License";
   };
-  passthru = {
-    updateInfo = {
-      downloadPage = "http://sourceforge.net/projects/sleuthkit/files/sleuthkit";
-    };
-  };
-}) x
-
+}