2014-08-20 22:42:50 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-01-24 03:11:44 +00:00
|
|
|
version = "1.3.5";
|
2015-06-17 07:55:16 +00:00
|
|
|
name = "rhash-${version}";
|
2014-08-20 22:42:50 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/rhash/${name}-src.tar.gz";
|
2018-01-24 03:11:44 +00:00
|
|
|
sha256 = "0bhz3xdl6r06k1bqigdjz42l31iqz2qdpg7zk316i7p2ra56iq4q";
|
2014-08-20 22:42:50 +00:00
|
|
|
};
|
|
|
|
|
2017-06-13 19:37:24 +00:00
|
|
|
patches = stdenv.lib.optional stdenv.isDarwin ./darwin.patch;
|
|
|
|
|
2018-01-24 03:11:44 +00:00
|
|
|
makeFlags = [ "DESTDIR=$(out)" "PREFIX=/" "AR:=$(AR)" "CC:=$(CC)" ];
|
2014-08-20 22:42:50 +00:00
|
|
|
|
2018-01-24 03:11:44 +00:00
|
|
|
buildFlags = [ "build-shared" "lib-shared" ];
|
2015-06-17 07:55:16 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2018-01-24 03:11:44 +00:00
|
|
|
make $makeFlags -C librhash install-lib-shared install-headers install-so-link
|
|
|
|
make $makeFlags install-shared
|
2015-06-17 07:55:16 +00:00
|
|
|
'';
|
|
|
|
|
2014-08-20 22:42:50 +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";
|
2017-06-13 15:17:03 +00:00
|
|
|
platforms = platforms.all;
|
2015-06-18 18:52:39 +00:00
|
|
|
maintainers = [ maintainers.andrewrk ];
|
2014-08-20 22:42:50 +00:00
|
|
|
};
|
|
|
|
}
|