2018-02-05 14:43:27 +00:00
|
|
|
{ stdenv, fetchFromGitHub, which }:
|
2014-08-20 22:42:50 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-07-16 11:10:17 +00:00
|
|
|
version = "1.4.0";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "rhash";
|
2014-08-20 22:42:50 +00:00
|
|
|
|
2018-02-05 14:43:27 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rhash";
|
|
|
|
repo = "RHash";
|
2018-09-18 21:51:41 +00:00
|
|
|
rev = "v${version}";
|
2020-07-16 11:10:17 +00:00
|
|
|
sha256 = "18zgr1bjzz8v6rckz2q2hx9f2ssbv8qfwclzpbyjaz0c1c9lqqar";
|
2014-08-20 22:42:50 +00:00
|
|
|
};
|
|
|
|
|
2018-02-05 14:43:27 +00:00
|
|
|
nativeBuildInputs = [ which ];
|
2017-06-13 19:37:24 +00:00
|
|
|
|
2018-02-05 14:43:27 +00:00
|
|
|
# configure script is not autotools-based, doesn't support these options
|
|
|
|
configurePlatforms = [ ];
|
2014-08-20 22:42:50 +00:00
|
|
|
|
2019-02-04 07:43:00 +00:00
|
|
|
doCheck = true;
|
2018-04-25 03:20:18 +00:00
|
|
|
|
2019-02-04 07:47:53 +00:00
|
|
|
checkTarget = "test-full";
|
|
|
|
|
2019-02-04 07:43:00 +00:00
|
|
|
installTargets = [ "install" "install-lib-shared" "install-lib-so-link" "install-lib-headers" ];
|
2015-06-17 07:55:16 +00:00
|
|
|
|
2014-08-20 22:42:50 +00:00
|
|
|
meta = with stdenv.lib; {
|
2019-12-21 16:52:50 +00:00
|
|
|
homepage = "http://rhash.sourceforge.net/";
|
2015-06-17 07:55:16 +00:00
|
|
|
description = "Console utility and library for computing and verifying hash sums of files";
|
2019-12-21 16:52:50 +00:00
|
|
|
license = licenses.bsd0;
|
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
|
|
|
};
|
|
|
|
}
|