2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, libewf, afflib, openssl, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-03-20 04:20:00 +00:00
|
|
|
version = "4.10.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "sleuthkit";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sleuthkit";
|
|
|
|
repo = "sleuthkit";
|
|
|
|
rev = "${pname}-${version}";
|
2021-03-20 04:20:00 +00:00
|
|
|
sha256 = "sha256-N0/spV/Bxk/UNULPot82Vw1uTIxy/Arf84wqUp6W2Tc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-02-13 14:23:35 +00:00
|
|
|
substituteInPlace tsk/img/ewf.cpp --replace libewf_handle_read_random libewf_handle_read_buffer_at_offset
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ libewf afflib openssl zlib ];
|
|
|
|
|
|
|
|
# Hack to fix the RPATH.
|
|
|
|
preFixup = "rm -rf */.libs";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A forensic/data recovery tool";
|
|
|
|
homepage = "https://www.sleuthkit.org/";
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = [ lib.maintainers.raskin ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.ipl10;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|