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

30 lines
826 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
version = "1.3.5";
2015-06-17 07:55:16 +00:00
name = "rhash-${version}";
src = fetchurl {
url = "mirror://sourceforge/rhash/${name}-src.tar.gz";
sha256 = "0bhz3xdl6r06k1bqigdjz42l31iqz2qdpg7zk316i7p2ra56iq4q";
};
patches = stdenv.lib.optional stdenv.isDarwin ./darwin.patch;
makeFlags = [ "DESTDIR=$(out)" "PREFIX=/" "AR:=$(AR)" "CC:=$(CC)" ];
buildFlags = [ "build-shared" "lib-shared" ];
2015-06-17 07:55:16 +00:00
installPhase = ''
make $makeFlags -C librhash install-lib-shared install-headers install-so-link
make $makeFlags install-shared
2015-06-17 07:55:16 +00:00
'';
meta = with stdenv.lib; {
homepage = http://rhash.anz.ru;
2015-06-17 07:55:16 +00:00
description = "Console utility and library for computing and verifying hash sums of files";
platforms = platforms.all;
2015-06-18 18:52:39 +00:00
maintainers = [ maintainers.andrewrk ];
};
}