Merge pull request #18 from numinit/shell-hook
flake: Add shellHook to mkDerivation
This commit is contained in:
commit
00fafd48ec
1 changed files with 2 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue