Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 34 lines 821 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "ssdeep"; 10 version = "2.14.1"; 11 12 src = fetchFromGitHub { 13 owner = "ssdeep-project"; 14 repo = "ssdeep"; 15 rev = "release-${version}"; 16 sha256 = "1yx6yjkggshw5yl89m4kvyzarjdg2l3hs0bbjbrfzwp1lkfd8i0c"; 17 }; 18 19 nativeBuildInputs = [ autoreconfHook ]; 20 21 # remove forbidden references to $TMPDIR 22 preFixup = lib.optionalString stdenv.hostPlatform.isLinux '' 23 patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$out"/bin/* 24 ''; 25 26 meta = { 27 description = "Program for calculating fuzzy hashes"; 28 mainProgram = "ssdeep"; 29 homepage = "http://www.ssdeep.sf.net"; 30 license = lib.licenses.gpl2Plus; 31 platforms = lib.platforms.unix; 32 maintainers = [ lib.maintainers.thoughtpolice ]; 33 }; 34}