diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/security/rhash')
-rw-r--r-- | nixpkgs/pkgs/tools/security/rhash/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/security/rhash/default.nix b/nixpkgs/pkgs/tools/security/rhash/default.nix new file mode 100644 index 000000000000..27f2ca04d710 --- /dev/null +++ b/nixpkgs/pkgs/tools/security/rhash/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub, which }: + +stdenv.mkDerivation rec { + version = "1.3.6"; + name = "rhash-${version}"; + + src = fetchFromGitHub { + owner = "rhash"; + repo = "RHash"; + rev = "v${version}"; + sha256 = "1c8gngjj34ylx1f56hjbvml22bif0bx1b88dx2cyxbix8praxqh7"; + }; + + nativeBuildInputs = [ which ]; + + # configure script is not autotools-based, doesn't support these options + configurePlatforms = [ ]; + + doCheck = false; # fails + + installTargets = [ "install" "install-lib-shared" "install-lib-so-link" ]; + postInstall = "make -C librhash install-headers"; + + meta = with stdenv.lib; { + homepage = http://rhash.anz.ru; + description = "Console utility and library for computing and verifying hash sums of files"; + platforms = platforms.all; + maintainers = [ maintainers.andrewrk ]; + }; +} |