nixpkgs/pkgs/tools/system/sleuthkit/default.nix

34 lines
885 B
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv, fetchFromGitHub, autoreconfHook, libewf, afflib, openssl, zlib }:
2013-10-18 11:44:30 +00:00
stdenv.mkDerivation rec {
2021-03-24 21:12:24 +00:00
version = "4.10.2";
pname = "sleuthkit";
2013-10-18 11:44:30 +00:00
2018-01-28 21:19:54 +00:00
src = fetchFromGitHub {
owner = "sleuthkit";
repo = "sleuthkit";
rev = "${pname}-${version}";
2021-03-24 21:12:24 +00:00
sha256 = "sha256-N0/spV/Bxk/UNULPot82Vw1uTIxy/Arf84wqUp6W2Tc=";
};
2018-01-28 21:19:54 +00:00
postPatch = ''
substituteInPlace tsk/img/ewf.cpp --replace libewf_handle_read_random libewf_handle_read_buffer_at_offset
2018-01-28 21:19:54 +00:00
'';
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";
meta = {
description = "A forensic/data recovery tool";
homepage = "https://www.sleuthkit.org/";
2021-01-15 09:19:50 +00:00
maintainers = [ lib.maintainers.raskin ];
platforms = lib.platforms.linux;
license = lib.licenses.ipl10;
};
2013-10-18 11:44:30 +00:00
}