summary refs log tree commit diff
path: root/pkgs/development/libraries/libsodium/default.nix
blob: af3d03cc661b2bb17813be6bcd841418fc228ed2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  name = "libsodium-0.7.0";

  src = fetchurl {
    url = "https://download.libsodium.org/libsodium/releases/${name}.tar.gz";
    sha256 = "0s4iis5h7yh27kamwic3rddyp5ra941bcqcawa37grjvl78zzjjc";
  };

  NIX_LDFLAGS = "-lssp";

  doCheck = true;

  meta = {
    description = "Version of NaCl with harwdare tests at runtime, not build time";
    license = stdenv.lib.licenses.isc;
    maintainers = with stdenv.lib.maintainers; [ viric ];
    platforms = stdenv.lib.platforms.all;
  };
}