aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/libsodium
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2013-10-11 20:37:47 +0200
committerLluís Batlle i Rossell <viric@viric.name>2013-10-11 20:37:47 +0200
commit2cf008345e144bb05493d232f585f39e22f6686e (patch)
treea2b01c740a73dc04da24eb89478a4ee57fbe3947 /pkgs/development/libraries/libsodium
parent3ba1970cfdb5124185d3a0c53c04b7f4dff5b51a (diff)
Adding libsodium 0.4.3.
Diffstat (limited to 'pkgs/development/libraries/libsodium')
-rw-r--r--pkgs/development/libraries/libsodium/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libsodium/default.nix b/pkgs/development/libraries/libsodium/default.nix
new file mode 100644
index 000000000000..1514f1284245
--- /dev/null
+++ b/pkgs/development/libraries/libsodium/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchurl, autoconf, libtool, automake }:
+
+let
+ version = "0.4.3";
+in
+stdenv.mkDerivation rec {
+ name = "libsodium-${version}";
+
+ src = fetchurl {
+ url = "https://github.com/jedisct1/libsodium/tarball/${version}";
+ name = "${name}.tar.gz";
+ sha256 = "0vammhvkz6masnwyacqkzkah05bgv3syb97jvg2y49vb67pwmspn";
+ };
+
+ preConfigure = ''
+ ACLOCAL_PATH=$ACLOCAL_PATH:`pwd`/m4
+ ./autogen.sh
+ '';
+
+ buildInputs = [ autoconf libtool automake ];
+
+ doCheck = true;
+
+ meta = {
+ description = "Version of NaCl with harwdare tests at runtime, not build time";
+ license = "ISC";
+ maintainers = with stdenv.lib.maintainers; [ viric ];
+ platforms = stdenv.lib.platforms.all;
+ };
+}