git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #8366 from andrewrk/rhash

expose librhash

commitc1f7f6df4cccfc8c1411482079d114d8926f0fd4 authorlethalman <lucabru@src.gnome.org> dateWed 17 Jun 2015, 13:01 (11 years ago) parentfcd7b68bb2d249
1 file changed+17−2
pkgs/tools/security/rhash/default.nix+17−2
pkgs/tools/security/rhash/default.nix+17−2
@@ -1,7 +1,8 @@
11{ stdenv, fetchurl }:
22
33stdenv.mkDerivation rec {
4− name = "rhash-1.3.3";
4+ version = "1.3.3";
5+ name = "rhash-${version}";
56
67 src = fetchurl {
78 url = "mirror://sourceforge/rhash/${name}-src.tar.gz";
@@ -10,9 +11,23 @@ stdenv.mkDerivation rec {
1011
1112 installFlags = [ "DESTDIR=$(out)" "PREFIX=/" ];
1213
14+ # we build the static library because of two makefile bugs
15+ # * .h files installed for static library target only
16+ # * .so.0 -> .so link only created in the static library install target
17+ buildPhase = ''
18+ make lib-shared lib-static build-shared
19+ '';
20+
21+ # we don't actually want the static library, so we remove it after it
22+ # gets installed
23+ installPhase = ''
24+ make DESTDIR="$out" PREFIX="/" install-shared install-lib-shared install-lib-static
25+ rm $out/lib/librhash.a
26+ '';
27+
1328 meta = with stdenv.lib; {
1429 homepage = http://rhash.anz.ru;
15− description = "Console utility for computing and verifying hash sums of files";
30+ description = "Console utility and library for computing and verifying hash sums of files";
1631 platforms = platforms.linux;
1732 };
1833}