lol
1{ stdenv, fetchurl, patchelf }:
2
3stdenv.mkDerivation rec {
4 name = "ssdeep-${version}";
5 version = "2.13";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/ssdeep/${name}.tar.gz";
9 sha256 = "1igqy0j7jrklb8fdlrm6ald4cyl1fda5ipfl8crzyl6bax2ajk3f";
10 };
11
12 # For some reason (probably a build system bug), the binary isn't
13 # properly linked to $out/lib to find libfuzzy.so
14 postFixup = ''
15 rp=$(patchelf --print-rpath $out/bin/ssdeep)
16 patchelf --set-rpath $rp:$out/lib $out/bin/ssdeep
17 '';
18
19 meta = {
20 description = "A program for calculating fuzzy hashes";
21 homepage = "http://www.ssdeep.sf.net";
22 license = stdenv.lib.licenses.gpl2;
23 platforms = stdenv.lib.platforms.unix;
24 maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
25 };
26}