From 8a17d5491428b38b3fc368a2ca95a912a432a65a Mon Sep 17 00:00:00 2001 From: Morgan Jones Date: Sat, 1 Nov 2025 15:19:37 -0700 Subject: [PATCH] flake: Add shellHook to mkDerivation Otherwise, we don't run the bindgen script while entering a devShell. --- flake.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 7414299..ab8f9db 100644 --- a/flake.nix +++ b/flake.nix @@ -63,7 +63,7 @@ }; config.nix-bindings-rust = { nciBuildConfig = { - mkDerivation = { + mkDerivation = rec { buildInputs = [ # stdbool.h pkgs.stdenv.cc @@ -91,6 +91,7 @@ postConfigure = lib.optionalString pkgs.stdenv.cc.isGNU '' source ${./bindgen-gcc.sh} ''; + shellHook = postConfigure; }; # NOTE: duplicated in flake.nix devShell env = {