From 451f7818a5d22e7142d6a73a4923f570d4a3b4a1 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Tue, 2 Aug 2011 20:06:09 +0000 Subject: [PATCH] Adding The Sleuth Kit svn path=/nixpkgs/trunk/; revision=28130 --- pkgs/tools/system/sleuthkit/default.nix | 48 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 50 insertions(+) create mode 100644 pkgs/tools/system/sleuthkit/default.nix diff --git a/pkgs/tools/system/sleuthkit/default.nix b/pkgs/tools/system/sleuthkit/default.nix new file mode 100644 index 000000000000..86ec54ecb8fa --- /dev/null +++ b/pkgs/tools/system/sleuthkit/default.nix @@ -0,0 +1,48 @@ +x@{builderDefsPackage + , libewf, afflib, openssl, zlib + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + 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; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + /* 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; + license = "IBM Public License"; + }; + passthru = { + updateInfo = { + downloadPage = "http://sourceforge.net/projects/sleuthkit/files/sleuthkit"; + }; + }; +}) x + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5f04c3925de8..73ae09f1aa83 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1286,6 +1286,8 @@ let siege = callPackage ../tools/networking/siege {}; + sleuthkit = callPackage ../tools/system/sleuthkit {}; + slimrat = callPackage ../tools/networking/slimrat { inherit (perlPackages) WWWMechanize LWP; };