2013-10-11 20:23:10 +01:00
|
|
|
{ stdenv, fetchurl }:
|
2013-10-11 19:37:47 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-05-09 19:40:42 +01:00
|
|
|
name = "libsodium-1.0.3";
|
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-05-09 19:40:42 +01:00
|
|
|
sha256 = "120jkda2q58p0n68banh64vsfm3hgqnacagj425d218cr4ycdkyb";
|
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;
|
|
|
|
|
2015-05-02 06:54:29 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-02-03 15:28:20 +00:00
|
|
|
description = "Version of NaCl with hardware tests at runtime, not build time";
|
2015-05-02 06:54:29 +01:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ viric wkennington ];
|
|
|
|
platforms = platforms.all;
|
2013-10-11 19:37:47 +01:00
|
|
|
};
|
|
|
|
}
|