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 = {
|
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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue