mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:28:51 +00:00
22 lines
592 B
Nix
22 lines
592 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libsodium-1.0.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.libsodium.org/libsodium/releases/${name}.tar.gz";
|
|
sha256 = "06dabf77cz6qg7aqv5j5r4m32b5zn253pixwb3k5lm3z0h88y7cn";
|
|
};
|
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString (stdenv.cc.cc.isGNU or false) "-lssp";
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Version of NaCl with hardware tests at runtime, not build time";
|
|
license = stdenv.lib.licenses.isc;
|
|
maintainers = with stdenv.lib.maintainers; [ viric ];
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|