2013-10-11 20:23:10 +01:00
|
|
|
{ stdenv, fetchurl }:
|
2013-10-11 19:37:47 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-02-03 15:54:08 +00:00
|
|
|
name = "libsodium-1.0.2";
|
2013-10-11 19:37:47 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-10-11 20:23:10 +01:00
|
|
|
url = "https://download.libsodium.org/libsodium/releases/${name}.tar.gz";
|
2015-02-03 15:54:08 +00:00
|
|
|
sha256 = "06dabf77cz6qg7aqv5j5r4m32b5zn253pixwb3k5lm3z0h88y7cn";
|
2013-10-11 19:37:47 +01:00
|
|
|
};
|
|
|
|
|
2015-02-11 22:37:30 +00:00
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString (stdenv.cc.cc.isGNU or false) "-lssp";
|
2013-10-11 19:37:47 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
2015-02-03 15:28:20 +00:00
|
|
|
description = "Version of NaCl with hardware tests at runtime, not build time";
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.isc;
|
2013-10-11 19:37:47 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ viric ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|