From 388dc735b95804dcb8389d553c69d7dbb1c8c42a 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 c8f24c0..0058049 100644 --- a/flake.nix +++ b/flake.nix @@ -60,7 +60,7 @@ }; config.nix-bindings-rust = { nciBuildConfig = { - mkDerivation = { + mkDerivation = rec { buildInputs = [ # stdbool.h pkgs.stdenv.cc @@ -88,6 +88,7 @@ postConfigure = lib.optionalString pkgs.stdenv.cc.isGNU '' source ${./bindgen-gcc.sh} ''; + shellHook = postConfigure; }; # NOTE: duplicated in flake.nix devShell env = {