2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
2014-03-20 18:18:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ssdeep";
|
2018-08-16 19:45:52 +00:00
|
|
|
version = "2.14.1";
|
2014-03-20 18:18:51 +00:00
|
|
|
|
2018-08-16 19:45:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ssdeep-project";
|
|
|
|
repo = "ssdeep";
|
|
|
|
rev = "release-${version}";
|
|
|
|
sha256 = "1yx6yjkggshw5yl89m4kvyzarjdg2l3hs0bbjbrfzwp1lkfd8i0c";
|
2014-03-20 18:18:51 +00:00
|
|
|
};
|
|
|
|
|
2018-08-16 19:45:52 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2023-08-05 07:23:43 +00:00
|
|
|
# remove forbidden references to $TMPDIR
|
2024-09-24 15:50:49 +00:00
|
|
|
preFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
|
2023-08-05 07:23:43 +00:00
|
|
|
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$out"/bin/*
|
|
|
|
'';
|
2017-05-16 14:35:52 +00:00
|
|
|
|
2014-03-20 18:18:51 +00:00
|
|
|
meta = {
|
|
|
|
description = "Program for calculating fuzzy hashes";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "ssdeep";
|
2014-03-20 18:18:51 +00:00
|
|
|
homepage = "http://www.ssdeep.sf.net";
|
2024-04-26 11:35:31 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
2014-03-20 18:18:51 +00:00
|
|
|
};
|
|
|
|
}
|