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