mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
23 lines
600 B
Nix
23 lines
600 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libsodium-1.0.8";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.libsodium.org/libsodium/releases/${name}.tar.gz";
|
|
sha256 = "09hr604k9gdss2r321x5dv3wn11fdl87nswr18g68lkqab993wf0";
|
|
};
|
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.cc.isGNU "-lssp";
|
|
|
|
doCheck = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A modern and easy-to-use crypto library";
|
|
homepage = http://doc.libsodium.org/;
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ raskin viric wkennington ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|