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