git.iko.soy/typeable/nixpkgs
on master help sign in
opendht: rework module to use autoreconfHook, and use multiple outputs

Signed-off-by: Austin Seipp <aseipp@pobox.com>

commit185f0015f230a26bbd1fdea156e5ea6fbb2f288a authorAustin Seipp <aseipp@pobox.com> dateThu 30 Aug 2018, 17:10 (8 years ago) parentd1c6c32
1 file changed+20−29
pkgs/development/libraries/opendht/default.nix+20−29
pkgs/development/libraries/opendht/default.nix+20−29
@@ -1,14 +1,6 @@
1−{ stdenv
2−, fetchFromGitHub
3−, autoconf
4−, automake
5−, libtool
6−, pkgconfig
7−, nettle
8−, gnutls
9−, msgpack
10−, readline
11−, libargon2
1+{ stdenv, fetchFromGitHub
2+, autoreconfHook, pkgconfig
3+, nettle, gnutls, msgpack, readline, libargon2
124}:
135
146stdenv.mkDerivation rec {
@@ -22,27 +14,26 @@ stdenv.mkDerivation rec {
2214 sha256 = "1wqib5plak9bw2bla7y4qyjqi0b00kf8mfwlml16qj3i0aq6h2cp";
2315 };
2416
25− buildInputs = [
26− autoconf
27− automake
28− libtool
29− pkgconfig
30− nettle
31− gnutls
32− msgpack
33− readline
34− libargon2
35− ];
17+ nativeBuildInputs =
18+ [ autoreconfHook
19+ pkgconfig
20+ ];
3621
37− preConfigure = ''
38− ./autogen.sh
39− '';
22+ buildInputs =
23+ [ nettle
24+ gnutls
25+ msgpack
26+ readline
27+ libargon2
28+ ];
29+
30+ outputs = [ "out" "lib" "dev" "man" ];
4031
4132 meta = with stdenv.lib; {
4233 description = "A C++11 Kademlia distributed hash table implementation";
43− homepage = https://github.com/savoirfairelinux/opendht;
44− license = licenses.gpl3Plus;
45− maintainers = with maintainers; [ taeer olynch ];
46− platforms = platforms.linux;
34+ homepage = https://github.com/savoirfairelinux/opendht;
35+ license = licenses.gpl3Plus;
36+ maintainers = with maintainers; [ taeer olynch thoughtpolice ];
37+ platforms = platforms.linux;
4738 };
4839}