Break up dependencies in different groups
This commit is contained in:
parent
b238c69288
commit
99586477e0
39
flake.nix
39
flake.nix
|
@ -165,38 +165,43 @@
|
||||||
old.preInstallCheck;
|
old.preInstallCheck;
|
||||||
});
|
});
|
||||||
|
|
||||||
native_build_inputs = (with pkgs; [
|
buildToolsDeps = (with pkgs; [
|
||||||
cmake
|
cmake
|
||||||
ninja
|
ninja
|
||||||
ccache
|
|
||||||
git'
|
|
||||||
zsh
|
|
||||||
zsh-autosuggestions
|
|
||||||
zsh-autocomplete
|
|
||||||
zsh-syntax-highlighting
|
|
||||||
python3
|
|
||||||
iwyu
|
|
||||||
gc
|
|
||||||
llvm
|
llvm
|
||||||
llvmPackages_17.mlir
|
llvmPackages_17.mlir
|
||||||
llvmPackages_17.clang
|
llvmPackages_17.clang
|
||||||
]);
|
iwyu
|
||||||
|
]);
|
||||||
|
|
||||||
build_inputs = with pkgs; [
|
buildDevToolsDeps = (with pkgs; [
|
||||||
|
ccache
|
||||||
|
git'
|
||||||
|
python3
|
||||||
|
zsh
|
||||||
|
zsh-autosuggestions
|
||||||
|
zsh-autocomplete
|
||||||
|
zsh-syntax-highlighting
|
||||||
|
]);
|
||||||
|
|
||||||
|
buildDeps = (with pkgs; [
|
||||||
gc
|
gc
|
||||||
gtest
|
|
||||||
gmock
|
|
||||||
zlib'
|
zlib'
|
||||||
llvm
|
llvm
|
||||||
llvmPackages_17.mlir
|
llvmPackages_17.mlir
|
||||||
llvmPackages_17.clang
|
llvmPackages_17.clang
|
||||||
];
|
]);
|
||||||
|
|
||||||
|
testDeps = (with pkgs; [
|
||||||
|
gtest
|
||||||
|
gmock
|
||||||
|
]);
|
||||||
|
|
||||||
in {
|
in {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
devShells.default = (pkgs.mkShell.override { stdenv = stdenv';}) {
|
devShells.default = (pkgs.mkShell.override { stdenv = stdenv';}) {
|
||||||
nativeBuildInputs = native_build_inputs;
|
nativeBuildInputs = buildDevToolsDeps ++ buildToolsDeps;
|
||||||
buildInputs = build_inputs;
|
buildInputs = buildDeps ++ testDeps;
|
||||||
shellHook =
|
shellHook =
|
||||||
''
|
''
|
||||||
ZDOTDIR=${zshDir} zsh -d && exit
|
ZDOTDIR=${zshDir} zsh -d && exit
|
||||||
|
|
Loading…
Reference in New Issue