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 = {
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 = {