2015-04-02 23:24:43 +02:00
|
|
|
{ stdenv, fetchurl, patchelf }:
|
2014-03-20 19:18:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ssdeep-${version}";
|
2015-04-02 23:24:43 +02:00
|
|
|
version = "2.12";
|
2014-03-20 19:18:51 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/ssdeep/${name}.tar.gz";
|
2015-04-02 23:24:43 +02:00
|
|
|
sha256 = "1pjb3qpcn6slfqjv23jf7i8zf7950b7h27b0v0dva5pxmn3rw149";
|
2014-03-20 19:18:51 +01:00
|
|
|
};
|
|
|
|
|
2015-04-02 23:24:43 +02:00
|
|
|
# For some reason (probably a build system bug), the binary isn't
|
|
|
|
# properly linked to $out/lib to find libfuzzy.so
|
|
|
|
postFixup = ''
|
|
|
|
rp=$(patchelf --print-rpath $out/bin/ssdeep)
|
|
|
|
patchelf --set-rpath $rp:$out/lib $out/bin/ssdeep
|
|
|
|
'';
|
|
|
|
|
2014-03-20 19:18:51 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|