nixpkgs/pkgs/tools/security/rhash/default.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

2021-06-11 21:20:57 +02:00
{ lib, stdenv, fetchFromGitHub, which
, enableStatic ? stdenv.hostPlatform.isStatic
}:
stdenv.mkDerivation rec {
2021-02-03 23:24:42 +01:00
version = "1.4.1";
pname = "rhash";
src = fetchFromGitHub {
owner = "rhash";
repo = "RHash";
rev = "v${version}";
2021-02-03 23:24:42 +01:00
sha256 = "sha256-kmi1FtJYPBUdMfJlzEsQkTwcYB99isP3yzH1EYlk54g=";
};
nativeBuildInputs = [ which ];
# configure script is not autotools-based, doesn't support these options
2021-06-11 21:20:57 +02:00
dontAddStaticConfigureFlags = true;
configurePlatforms = [ ];
2021-06-11 21:20:57 +02:00
configureFlags = [
"--ar=${stdenv.cc.targetPrefix}ar"
(lib.enableFeature enableStatic "static")
(lib.enableFeature enableStatic "lib-static")
];
doCheck = true;
checkTarget = "test-full";
2021-06-11 21:20:57 +02:00
installTargets = [ "install" "install-lib-headers" ]
++ lib.optional (!enableStatic) "install-lib-so-link";
2015-06-17 09:55:16 +02:00
meta = with lib; {
homepage = "http://rhash.sourceforge.net/";
2015-06-17 09:55:16 +02:00
description = "Console utility and library for computing and verifying hash sums of files";
license = licenses.bsd0;
platforms = platforms.all;
2015-06-18 20:52:39 +02:00
maintainers = [ maintainers.andrewrk ];
};
}