ssdeep: 2.13 -> 2.14.1 (#45114)
"New" project maintainer, move to github.
This commit is contained in:
parent
9c32d185d1
commit
4cea1c16d1
|
@ -1,24 +1,21 @@
|
|||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchFromGitHub, autoreconfHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ssdeep-${version}";
|
||||
version = "2.13";
|
||||
version = "2.14.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/ssdeep/${name}.tar.gz";
|
||||
sha256 = "1igqy0j7jrklb8fdlrm6ald4cyl1fda5ipfl8crzyl6bax2ajk3f";
|
||||
src = fetchFromGitHub {
|
||||
owner = "ssdeep-project";
|
||||
repo = "ssdeep";
|
||||
rev = "release-${version}";
|
||||
sha256 = "1yx6yjkggshw5yl89m4kvyzarjdg2l3hs0bbjbrfzwp1lkfd8i0c";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
# Hack to avoid TMPDIR in RPATHs.
|
||||
preFixup = ''rm -rf "$(pwd)" '';
|
||||
|
||||
# For some reason (probably a build system bug), the binary isn't
|
||||
# properly linked to $out/lib to find libfuzzy.so
|
||||
postFixup = stdenv.lib.optionalString (!stdenv.isDarwin) ''
|
||||
rp=$(patchelf --print-rpath $out/bin/ssdeep)
|
||||
patchelf --set-rpath $rp:$out/lib $out/bin/ssdeep
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A program for calculating fuzzy hashes";
|
||||
homepage = "http://www.ssdeep.sf.net";
|
||||
|
|
Loading…
Reference in a new issue