3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/system/sleuthkit/default.nix

35 lines
911 B
Nix
Raw Normal View History

2018-01-28 21:19:54 +00:00
{ stdenv, fetchFromGitHub, autoreconfHook, libewf, afflib, openssl, zlib }:
2013-10-18 12:44:30 +01:00
stdenv.mkDerivation rec {
version = "4.6.2";
2014-09-02 11:18:19 +01:00
name = "sleuthkit-${version}";
2013-10-18 12:44:30 +01:00
2018-01-28 21:19:54 +00:00
src = fetchFromGitHub {
owner = "sleuthkit";
repo = "sleuthkit";
rev = name;
sha256 = "1ykl6ijf15mjfvmkk9b4gj18kspdairn7ms4wsi2v9kb25776skx";
};
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 12:44:30 +01:00
enableParallelBuilding = true;
2018-01-28 21:19:54 +00:00
nativeBuildInputs = [ autoreconfHook ];
2013-10-18 12:44:30 +01:00
buildInputs = [ libewf afflib openssl zlib ];
# Hack to fix the RPATH.
preFixup = "rm -rf */.libs";
meta = {
description = "A forensic/data recovery tool";
2018-01-28 21:19:54 +00:00
homepage = https://www.sleuthkit.org/;
2013-10-18 12:44:30 +01:00
maintainers = [ stdenv.lib.maintainers.raskin ];
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.ipl10;
2014-09-02 11:18:19 +01:00
inherit version;
};
2013-10-18 12:44:30 +01:00
}