libressl: support musl in libressl 2.9.2
This commit is contained in:
parent
2c32f91bfc
commit
8f01848075
1 changed files with 10 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
{ stdenv, fetchurl, lib, cmake, cacert }:
|
{ stdenv, fetchurl, lib, cmake, cacert, fetchpatch }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
generic = { version, sha256 }: stdenv.mkDerivation rec {
|
generic = { version, sha256, patches ? [] }: stdenv.mkDerivation rec {
|
||||||
pname = "libressl";
|
pname = "libressl";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
|
@ -31,6 +31,8 @@ let
|
||||||
rm configure
|
rm configure
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
inherit patches;
|
||||||
|
|
||||||
# Since 2.9.x the default location can't be configured from the build using
|
# Since 2.9.x the default location can't be configured from the build using
|
||||||
# DEFAULT_CA_FILE anymore, instead we have to patch the default value.
|
# DEFAULT_CA_FILE anymore, instead we have to patch the default value.
|
||||||
postPatch = lib.optionalString (lib.versionAtLeast version "2.9.2") ''
|
postPatch = lib.optionalString (lib.versionAtLeast version "2.9.2") ''
|
||||||
|
@ -69,6 +71,12 @@ in {
|
||||||
libressl_2_9 = generic {
|
libressl_2_9 = generic {
|
||||||
version = "2.9.2";
|
version = "2.9.2";
|
||||||
sha256 = "1m6mz515dcbrbnyz8hrpdfjzdmj1c15vbgnqxdxb89g3z9kq3iy4";
|
sha256 = "1m6mz515dcbrbnyz8hrpdfjzdmj1c15vbgnqxdxb89g3z9kq3iy4";
|
||||||
|
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/libressl-portable/portable/pull/529/commits/a747aacc23607c993cc481378782b2c7dd5bc53b.patch";
|
||||||
|
sha256 = "0wbrcscdkjpk4mhh7f3saghi4smia4lhf7fl6la3ahhgx1krn5zm";
|
||||||
|
})
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
libressl_3_0 = generic {
|
libressl_3_0 = generic {
|
||||||
|
|
Loading…
Reference in a new issue