2018-01-28 21:19:54 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, libewf, afflib, openssl, zlib }:
|
2011-08-02 20:06:09 +00:00
|
|
|
|
2013-10-18 11:44:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-01-16 10:51:49 +00:00
|
|
|
version = "4.6.5";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sleuthkit";
|
2013-10-18 11:44:30 +00:00
|
|
|
|
2018-01-28 21:19:54 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sleuthkit";
|
|
|
|
repo = "sleuthkit";
|
2019-08-15 12:41:18 +00:00
|
|
|
rev = "${pname}-${version}";
|
2019-01-16 10:51:49 +00:00
|
|
|
sha256 = "1q1cdixnfv9v4qlzza8xwdsyvq1vdw6gjgkd41yc1d57ldp1qm0c";
|
2011-08-02 20:06:09 +00:00
|
|
|
};
|
|
|
|
|
2018-01-28 21:19:54 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tsk/img/ewf.c --replace libewf_handle_read_random libewf_handle_read_buffer_at_offset
|
|
|
|
'';
|
|
|
|
|
2013-10-18 11:44:30 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-01-28 21:19:54 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2013-10-18 11:44:30 +00:00
|
|
|
buildInputs = [ libewf afflib openssl zlib ];
|
|
|
|
|
|
|
|
# Hack to fix the RPATH.
|
|
|
|
preFixup = "rm -rf */.libs";
|
2011-08-02 20:06:09 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A forensic/data recovery tool";
|
2018-01-28 21:19:54 +00:00
|
|
|
homepage = https://www.sleuthkit.org/;
|
2013-10-18 11:44:30 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.ipl10;
|
2014-09-02 10:18:19 +00:00
|
|
|
inherit version;
|
2011-08-02 20:06:09 +00:00
|
|
|
};
|
2013-10-18 11:44:30 +00:00
|
|
|
}
|