2014-03-20 19:18:51 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ssdeep-${version}";
|
|
|
|
version = "2.10";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/ssdeep/${name}.tar.gz";
|
|
|
|
sha256 = "1p7dgchq8hgadnxz5qh95ay17k5j74l4qyd15wspc54lb603p2av";
|
|
|
|
};
|
|
|
|
|
2014-03-30 01:28:39 +01:00
|
|
|
postFixup = stdenv.lib.optionalString stdenv.isLinux ''
|
2014-03-20 19:18:51 +01:00
|
|
|
patchelf --set-rpath "$(patchelf --print-rpath $out/bin/ssdeep):$out/lib" $out/bin/ssdeep
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A program for calculating fuzzy hashes";
|
|
|
|
homepage = "http://www.ssdeep.sf.net";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2014-03-30 01:28:39 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-03-20 19:18:51 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|