python3Packages.python-kadmin-rs: fix build against krb5 v1.22

This commit is contained in:
Fabian Möller
2025-09-18 09:31:35 +02:00
parent 9e163303db
commit 0119e66ea6
@@ -27,6 +27,12 @@ buildPythonPackage rec {
hash = "sha256-FEOWsUQhLXU1xqaTLe6GKO1OYi5fVDyT1dowiAyzbGI=";
};
postPatch = ''
# https://github.com/authentik-community/kadmin-rs/issues/213
substituteInPlace kadmin-sys/build.rs \
--replace-fail 'bindgen::builder()' 'bindgen::builder().allowlist_type("krb5_boolean")'
'';
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src;
hash = "sha256-tvjwNfjMc8k4GK9rZXFG9CfcSlUW/B95YimLtH4iEbM=";