From 0119e66ea615a61b54aabf8cf131806f5bf8f0c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20M=C3=B6ller?= Date: Thu, 18 Sep 2025 09:31:35 +0200 Subject: [PATCH] python3Packages.python-kadmin-rs: fix build against krb5 v1.22 --- .../development/python-modules/python-kadmin-rs/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/python-kadmin-rs/default.nix b/pkgs/development/python-modules/python-kadmin-rs/default.nix index 2ce0487f285f..c4f18d0f4e09 100644 --- a/pkgs/development/python-modules/python-kadmin-rs/default.nix +++ b/pkgs/development/python-modules/python-kadmin-rs/default.nix @@ -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=";