Merge pull request #18 from numinit/shell-hook

flake: Add shellHook to mkDerivation
This commit is contained in:
Robert Hensing 2025-12-09 19:05:51 +01:00 committed by GitHub
commit 00fafd48ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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