nixpkgs/pkgs/tools/security/ssdeep/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
810 B
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
stdenv.mkDerivation rec {
pname = "ssdeep";
version = "2.14.1";
src = fetchFromGitHub {
owner = "ssdeep-project";
repo = "ssdeep";
rev = "release-${version}";
sha256 = "1yx6yjkggshw5yl89m4kvyzarjdg2l3hs0bbjbrfzwp1lkfd8i0c";
};
nativeBuildInputs = [ autoreconfHook ];
# remove forbidden references to $TMPDIR
preFixup = lib.optionalString stdenv.isLinux ''
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$out"/bin/*
'';
meta = {
description = "A program for calculating fuzzy hashes";
mainProgram = "ssdeep";
homepage = "http://www.ssdeep.sf.net";
2024-04-26 11:35:31 +00:00
license = lib.licenses.gpl2Plus;
2021-01-15 09:19:50 +00:00
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.thoughtpolice ];
};
}