2013-10-11 12:23:10 -07:00
|
|
|
{ stdenv, fetchurl }:
|
2013-10-11 11:37:47 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-05-09 11:40:42 -07:00
|
|
|
name = "libsodium-1.0.3";
|
2013-10-11 11:37:47 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-10-11 12:23:10 -07:00
|
|
|
url = "https://download.libsodium.org/libsodium/releases/${name}.tar.gz";
|
2015-05-09 11:40:42 -07:00
|
|
|
sha256 = "120jkda2q58p0n68banh64vsfm3hgqnacagj425d218cr4ycdkyb";
|
2013-10-11 11:37:47 -07:00
|
|
|
};
|
|
|
|
|
2015-05-11 14:37:53 -07:00
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.cc.isGNU "-lssp";
|
2013-10-11 11:37:47 -07:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2015-05-01 22:54:29 -07:00
|
|
|
meta = with stdenv.lib; {
|
2015-05-09 15:20:02 -07:00
|
|
|
description = "A modern and easy-to-use crypto library";
|
|
|
|
homepage = http://doc.libsodium.org/;
|
2015-05-01 22:54:29 -07:00
|
|
|
license = licenses.isc;
|
2015-05-09 15:20:02 -07:00
|
|
|
maintainers = with maintainers; [ raskin viric wkennington ];
|
2015-05-01 22:54:29 -07:00
|
|
|
platforms = platforms.all;
|
2013-10-11 11:37:47 -07:00
|
|
|
};
|
|
|
|
}
|