2018-02-05 06:43:27 -08:00
|
|
|
{ stdenv, fetchFromGitHub, which }:
|
2014-08-20 15:42:50 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-05 06:43:27 -08:00
|
|
|
version = "2018-02-05";
|
2015-06-17 00:55:16 -07:00
|
|
|
name = "rhash-${version}";
|
2014-08-20 15:42:50 -07:00
|
|
|
|
2018-02-05 06:43:27 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rhash";
|
|
|
|
repo = "RHash";
|
|
|
|
rev = "cc26d54ff5df0f692907a5e3132a5eeca559ed61";
|
|
|
|
sha256 = "1ldagp931lmxxpyvsb9rrar4iqwmv94m6lfjzkbkshpmk3p5ng7h";
|
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
|
|
|
|
2018-04-24 20:20:18 -07:00
|
|
|
doCheck = false; # fails
|
|
|
|
|
2018-02-05 06:43:27 -08:00
|
|
|
installTargets = [ "install" "install-lib-shared" "install-lib-so-link" ];
|
|
|
|
postInstall = "make -C librhash install-headers";
|
2015-06-17 00:55:16 -07:00
|
|
|
|
2014-08-20 15:42:50 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://rhash.anz.ru;
|
2015-06-17 00:55:16 -07:00
|
|
|
description = "Console utility and library for computing and verifying hash sums of files";
|
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
|
|
|
};
|
|
|
|
}
|