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