3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/rhash/default.nix

35 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
2015-06-17 08:55:16 +01:00
version = "1.3.3";
name = "rhash-${version}";
src = fetchurl {
url = "mirror://sourceforge/rhash/${name}-src.tar.gz";
sha1 = "0981bdc98ba7ef923b1a6cd7fd8bb0374cff632e";
};
installFlags = [ "DESTDIR=$(out)" "PREFIX=/" ];
2015-06-17 08:55:16 +01:00
# we build the static library because of two makefile bugs
# * .h files installed for static library target only
# * .so.0 -> .so link only created in the static library install target
buildPhase = ''
make lib-shared lib-static build-shared
'';
# we don't actually want the static library, so we remove it after it
# gets installed
installPhase = ''
make DESTDIR="$out" PREFIX="/" install-shared install-lib-shared install-lib-static
rm $out/lib/librhash.a
'';
meta = with stdenv.lib; {
homepage = http://rhash.anz.ru;
2015-06-17 08:55:16 +01:00
description = "Console utility and library for computing and verifying hash sums of files";
platforms = platforms.linux;
2015-06-18 19:52:39 +01:00
maintainers = [ maintainers.andrewrk ];
};
}