8 stdenv.mkDerivation rec {
12 src = fetchFromGitHub {
13 owner = "ssdeep-project";
15 rev = "release-${version}";
16 sha256 = "1yx6yjkggshw5yl89m4kvyzarjdg2l3hs0bbjbrfzwp1lkfd8i0c";
19 nativeBuildInputs = [ autoreconfHook ];
21 # remove forbidden references to $TMPDIR
22 preFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
23 patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$out"/bin/*
27 description = "Program for calculating fuzzy hashes";
28 mainProgram = "ssdeep";
29 homepage = "http://www.ssdeep.sf.net";
30 license = lib.licenses.gpl2Plus;
31 platforms = lib.platforms.unix;
32 maintainers = [ lib.maintainers.thoughtpolice ];