krb5: Add patches to fix build with musl on 1.18
This commit is contained in:
@@ -14,7 +14,7 @@ in
|
||||
with stdenv.lib;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${type}krb5-${version}";
|
||||
majorVersion = "1.18";
|
||||
majorVersion = "1.18"; # remove patches below with next upgrade
|
||||
version = majorVersion;
|
||||
|
||||
src = fetchurl {
|
||||
@@ -22,6 +22,15 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "121c5xsy3x0i4wdkrpw62yhvji6virbh6n30ypazkp0isws3k4bk";
|
||||
};
|
||||
|
||||
patches = optionals stdenv.hostPlatform.isMusl [
|
||||
# TODO: Remove with next release > 1.18
|
||||
# Patches to fix musl build with 1.18.
|
||||
# Not using `fetchpatch` for these for now to avoid infinite recursion
|
||||
# errors in downstream projects (unclear if it's a nixpkgs issue so far).
|
||||
./krb5-Fix-Linux-build-error-with-musl-libc.patch
|
||||
./krb5-Fix-typo-in-musl-build-fix.patch
|
||||
];
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
configureFlags = [ "--with-tcl=no" "--localstatedir=/var/lib"]
|
||||
|
||||
Reference in New Issue
Block a user