flake: Add shellHook to mkDerivation

Otherwise, we don't run the bindgen script while entering a devShell.
This commit is contained in:
Morgan Jones 2025-11-01 15:19:37 -07:00 committed by John Ericson
parent 06f9260d31
commit 388dc735b9

View file

@ -60,7 +60,7 @@
}; };
config.nix-bindings-rust = { config.nix-bindings-rust = {
nciBuildConfig = { nciBuildConfig = {
mkDerivation = { mkDerivation = rec {
buildInputs = [ buildInputs = [
# stdbool.h # stdbool.h
pkgs.stdenv.cc pkgs.stdenv.cc
@ -88,6 +88,7 @@
postConfigure = lib.optionalString pkgs.stdenv.cc.isGNU '' postConfigure = lib.optionalString pkgs.stdenv.cc.isGNU ''
source ${./bindgen-gcc.sh} source ${./bindgen-gcc.sh}
''; '';
shellHook = postConfigure;
}; };
# NOTE: duplicated in flake.nix devShell # NOTE: duplicated in flake.nix devShell
env = { env = {