forked from mirrors/nixpkgs
mbedtls: Add derivation
This commit is contained in:
parent
49b0ed21bd
commit
c10baf8377
41
pkgs/development/libraries/mbedtls/default.nix
Normal file
41
pkgs/development/libraries/mbedtls/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ stdenv, fetchurl, perl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mbedtls-1.3.10";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://polarssl.org/download/${name}-gpl.tgz";
|
||||
sha256 = "0zj0vdmam52hk7c6s3y81bdb4mqawi9fskkcqlgnj8v61j7dhvvl";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ perl ];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"SHARED=1"
|
||||
];
|
||||
|
||||
installFlags = [
|
||||
"DESTDIR=\${out}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
rm $out/lib/lib{mbedtls.so.8,polarssl.{a,so}}
|
||||
ln -s libmbedtls.so $out/lib/libmbedtls.so.8
|
||||
ln -s libmbedtls.so $out/lib/libpolarssl.so
|
||||
ln -s libmbedtls.a $out/lib/libpolarssl.a
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://polarssl.org/;
|
||||
description = "Portable cryptographic and SSL/TLS library, aka polarssl";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ wkennington ];
|
||||
};
|
||||
}
|
|
@ -6956,6 +6956,8 @@ let
|
|||
|
||||
matio = callPackage ../development/libraries/matio { };
|
||||
|
||||
mbedtls = callPackage ../development/libraries/mbedtls { };
|
||||
|
||||
mdds_0_7_1 = callPackage ../development/libraries/mdds/0.7.1.nix { };
|
||||
mdds = callPackage ../development/libraries/mdds { };
|
||||
|
||||
|
@ -7240,6 +7242,8 @@ let
|
|||
|
||||
poker-eval = callPackage ../development/libraries/poker-eval { };
|
||||
|
||||
polarssl = mbedtls;
|
||||
|
||||
polkit = callPackage ../development/libraries/polkit {
|
||||
spidermonkey = spidermonkey_17;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue