diff options
author | Andrew Kelley <superjoe30@gmail.com> | 2015-06-17 00:55:16 -0700 |
---|---|---|
committer | Andrew Kelley <superjoe30@gmail.com> | 2015-06-17 03:01:26 -0700 |
commit | bb2d249706fd010c2850b159d701bbc4037fc23a (patch) | |
tree | 55a6edf7a9658db1e2e70f4f5169654baa86d978 /pkgs/tools/security/rhash | |
parent | 8310045b14a50b246378ed9ad934a03b47646fb9 (diff) |
expose librhash
Diffstat (limited to 'pkgs/tools/security/rhash')
-rw-r--r-- | pkgs/tools/security/rhash/default.nix | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/pkgs/tools/security/rhash/default.nix b/pkgs/tools/security/rhash/default.nix index 6a2710869bf8..643053d9cac9 100644 --- a/pkgs/tools/security/rhash/default.nix +++ b/pkgs/tools/security/rhash/default.nix @@ -1,7 +1,8 @@ { stdenv, fetchurl }: stdenv.mkDerivation rec { - name = "rhash-1.3.3"; + version = "1.3.3"; + name = "rhash-${version}"; src = fetchurl { url = "mirror://sourceforge/rhash/${name}-src.tar.gz"; @@ -10,9 +11,23 @@ stdenv.mkDerivation rec { installFlags = [ "DESTDIR=$(out)" "PREFIX=/" ]; + # we build the static library because of two makefile bugs + # * .h files installed for static library target only + # * .so.0 -> .so link only created in the static library install target + buildPhase = '' + make lib-shared lib-static build-shared + ''; + + # we don't actually want the static library, so we remove it after it + # gets installed + installPhase = '' + make DESTDIR="$out" PREFIX="/" install-shared install-lib-shared install-lib-static + rm $out/lib/librhash.a + ''; + meta = with stdenv.lib; { homepage = http://rhash.anz.ru; - description = "Console utility for computing and verifying hash sums of files"; + description = "Console utility and library for computing and verifying hash sums of files"; platforms = platforms.linux; }; } |