3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/system/sleuthkit/default.nix
2021-07-16 00:17:12 +02:00

34 lines
885 B
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, libewf, afflib, openssl, zlib }:
stdenv.mkDerivation rec {
version = "4.10.2";
pname = "sleuthkit";
src = fetchFromGitHub {
owner = "sleuthkit";
repo = "sleuthkit";
rev = "${pname}-${version}";
sha256 = "sha256-N0/spV/Bxk/UNULPot82Vw1uTIxy/Arf84wqUp6W2Tc=";
};
postPatch = ''
substituteInPlace tsk/img/ewf.cpp --replace libewf_handle_read_random libewf_handle_read_buffer_at_offset
'';
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/";
maintainers = [ lib.maintainers.raskin ];
platforms = lib.platforms.linux;
license = lib.licenses.ipl10;
};
}