2018-02-05 14:43:27 +00:00
|
|
|
{ stdenv, fetchFromGitHub, which }:
|
2014-08-20 23:42:50 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-09-18 22:51:41 +01:00
|
|
|
version = "1.3.6";
|
2015-06-17 08:55:16 +01:00
|
|
|
name = "rhash-${version}";
|
2014-08-20 23:42:50 +01:00
|
|
|
|
2018-02-05 14:43:27 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rhash";
|
|
|
|
repo = "RHash";
|
2018-09-18 22:51:41 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1c8gngjj34ylx1f56hjbvml22bif0bx1b88dx2cyxbix8praxqh7";
|
2014-08-20 23:42:50 +01:00
|
|
|
};
|
|
|
|
|
2018-02-05 14:43:27 +00:00
|
|
|
nativeBuildInputs = [ which ];
|
2017-06-13 20:37:24 +01:00
|
|
|
|
2018-02-05 14:43:27 +00:00
|
|
|
# configure script is not autotools-based, doesn't support these options
|
|
|
|
configurePlatforms = [ ];
|
2014-08-20 23:42:50 +01:00
|
|
|
|
2018-04-25 04:20:18 +01:00
|
|
|
doCheck = false; # fails
|
|
|
|
|
2018-02-05 14:43:27 +00:00
|
|
|
installTargets = [ "install" "install-lib-shared" "install-lib-so-link" ];
|
|
|
|
postInstall = "make -C librhash install-headers";
|
2015-06-17 08:55:16 +01:00
|
|
|
|
2014-08-20 23:42:50 +01:00
|
|
|
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";
|
2017-06-13 16:17:03 +01:00
|
|
|
platforms = platforms.all;
|
2015-06-18 19:52:39 +01:00
|
|
|
maintainers = [ maintainers.andrewrk ];
|
2014-08-20 23:42:50 +01:00
|
|
|
};
|
|
|
|
}
|