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

31 lines
1016 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
2013-10-11 19:37:47 +01:00
stdenv.mkDerivation rec {
2019-05-31 01:55:55 +01:00
name = "libsodium-1.0.18";
2013-10-11 19:37:47 +01:00
src = fetchurl {
url = "https://download.libsodium.org/libsodium/releases/${name}.tar.gz";
2019-05-31 01:55:55 +01:00
sha256 = "1h9ncvj23qbbni958knzsli8dvybcswcjbx0qjjgi922nf848l3g";
2013-10-11 19:37:47 +01:00
};
outputs = [ "out" "dev" ];
separateDebugInfo = stdenv.isLinux && stdenv.hostPlatform.libc != "musl";
enableParallelBuilding = true;
hardeningDisable = lib.optional (stdenv.targetPlatform.isMusl && stdenv.targetPlatform.isx86_32) "stackprotector";
# FIXME: the hardeingDisable attr above does not seems effective, so
# the need to disable stackprotector via configureFlags
configureFlags = lib.optional (stdenv.targetPlatform.isMusl && stdenv.targetPlatform.isx86_32) "--disable-ssp";
2013-10-11 19:37:47 +01:00
doCheck = true;
meta = with lib; {
2015-05-09 23:20:02 +01:00
description = "A modern and easy-to-use crypto library";
homepage = "http://doc.libsodium.org/";
2015-05-02 06:54:29 +01:00
license = licenses.isc;
maintainers = with maintainers; [ raskin ];
2015-05-02 06:54:29 +01:00
platforms = platforms.all;
2013-10-11 19:37:47 +01:00
};
}