nixpkgs/pkgs/development/libraries/libsodium/default.nix

23 lines
600 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
2013-10-11 20:37:47 +02:00
stdenv.mkDerivation rec {
2016-03-02 13:59:28 +01:00
name = "libsodium-1.0.8";
2013-10-11 20:37:47 +02:00
src = fetchurl {
url = "https://download.libsodium.org/libsodium/releases/${name}.tar.gz";
2016-03-02 13:59:28 +01:00
sha256 = "09hr604k9gdss2r321x5dv3wn11fdl87nswr18g68lkqab993wf0";
2013-10-11 20:37:47 +02:00
};
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.cc.isGNU "-lssp";
2013-10-11 20:37:47 +02:00
doCheck = true;
2015-05-02 07:54:29 +02:00
meta = with stdenv.lib; {
2015-05-10 00:20:02 +02:00
description = "A modern and easy-to-use crypto library";
homepage = http://doc.libsodium.org/;
2015-05-02 07:54:29 +02:00
license = licenses.isc;
2015-05-10 00:20:02 +02:00
maintainers = with maintainers; [ raskin viric wkennington ];
2015-05-02 07:54:29 +02:00
platforms = platforms.all;
2013-10-11 20:37:47 +02:00
};
}