Skip to content

Commit

Permalink
opendht: init at 1.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Radvendii committed Jul 11, 2017
1 parent 2c1097a commit 0f9b6b9
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
48 changes: 48 additions & 0 deletions pkgs/tools/security/opendht/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{ stdenv
, fetchFromGitHub
, autoconf
, automake
, libtool
, pkgconfig
, nettle
, gnutls
, libmsgpack
, readline
, libargon2
}:

stdenv.mkDerivation rec {
name = "opendht-${version}";
version = "1.3.4";

src = fetchFromGitHub {
owner = "savoirfairelinux";
repo = "opendht";
rev = "${version}";
sha256 = "0karj37f0zq39w0ip8ahrjr6lcrrn9jd6bpzylp1m92jzs8pfki8";
};

buildInputs = [
autoconf
automake
libtool
pkgconfig
nettle
gnutls
libmsgpack
readline
libargon2
];

preConfigure = ''
./autogen.sh

This comment has been minimized.

Copy link
@globin

globin Jul 12, 2017

Member

Normally using autoreconfHook in nativeBuildInputs should allow you to drop this, and autoconf automake libtool.

This comment has been minimized.

Copy link
@Mic92

Mic92 Jul 12, 2017

Member

sometimes autogen.sh does a little bit more then that.

This comment has been minimized.

Copy link
@Radvendii

Radvendii Jul 12, 2017

Author Contributor

I didn't know about autoreconfHook while writing this. Just learned about it. I think I'll have time later today to try changing it.

'';

meta = with stdenv.lib; {
description = "A C++11 Kademlia distributed hash table implementation";
homepage = https://github.com/savoirfairelinux/opendht;
license = licenses.gpl3Plus;
maintainers = with maintainers; [ taeer olynch ];
platforms = platforms.linux;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3460,6 +3460,8 @@ with pkgs;

opendbx = callPackage ../development/libraries/opendbx { };

opendht = callPackage ../tools/security/opendht {};

This comment has been minimized.

Copy link
@Radvendii

Radvendii Jul 12, 2017

Author Contributor

I don't know. I think there was another hashing program in tools/security I wasn't sure where to put it and I figured someone would correct me if it was in the wrong place.

This comment has been minimized.

Copy link
@Mic92

Mic92 Jul 12, 2017

Member

I will move it.

This comment has been minimized.

Copy link
@Mic92

Mic92 Jul 12, 2017

Member

opendkim = callPackage ../development/libraries/opendkim { };

opendylan = callPackage ../development/compilers/opendylan {
Expand Down

0 comments on commit 0f9b6b9

Please sign in to comment.