flake.nix: decouple devShell
This commit is contained in:
2 files changed
+71
-30
No files matched your search
@@ -0,0 +1,28 @@
|
|||||||
|
{ pkgs }:
|
||||||
|
pkgs.mkShell {
|
||||||
|
packages = with pkgs; [
|
||||||
|
(fenix.stable.withComponents [
|
||||||
|
"cargo"
|
||||||
|
"clippy"
|
||||||
|
"rust-src"
|
||||||
|
"rustc"
|
||||||
|
"rustfmt"
|
||||||
|
"rust-analyzer"
|
||||||
|
])
|
||||||
|
gcc
|
||||||
|
openssl
|
||||||
|
pkg-config
|
||||||
|
|
||||||
|
nodejs
|
||||||
|
biome
|
||||||
|
|
||||||
|
sqlite
|
||||||
|
sqlx-cli
|
||||||
|
lazysql
|
||||||
|
|
||||||
|
claude-code
|
||||||
|
|
||||||
|
typos
|
||||||
|
tokei
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -16,40 +16,53 @@
|
|||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
overlays = [ fenix.overlays.default ];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
default = pkgs.mkShell rec {
|
default = import ./devShell.nix { inherit pkgs; };
|
||||||
nativeBuildInputs = with pkgs; [
|
|
||||||
(fenix.packages.${system}.complete.withComponents [
|
|
||||||
"cargo"
|
|
||||||
"clippy"
|
|
||||||
"rust-src"
|
|
||||||
"rustc"
|
|
||||||
"rustfmt"
|
|
||||||
"rust-analyzer"
|
|
||||||
])
|
|
||||||
gcc
|
|
||||||
openssl
|
|
||||||
pkg-config
|
|
||||||
|
|
||||||
nodejs
|
|
||||||
biome
|
|
||||||
|
|
||||||
sqlite
|
|
||||||
sqlx-cli
|
|
||||||
lazysql
|
|
||||||
|
|
||||||
gemini-cli
|
|
||||||
claude-code
|
|
||||||
|
|
||||||
typos
|
|
||||||
tokei
|
|
||||||
];
|
|
||||||
buildInputs = [ ];
|
|
||||||
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (nativeBuildInputs ++ buildInputs);
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
# devShells = forAllSystems (
|
||||||
|
# system:
|
||||||
|
# let
|
||||||
|
# pkgs = import nixpkgs {
|
||||||
|
# inherit system;
|
||||||
|
# config.allowUnfree = true;
|
||||||
|
# };
|
||||||
|
# in
|
||||||
|
# {
|
||||||
|
# default = pkgs.mkShell rec {
|
||||||
|
# nativeBuildInputs = with pkgs; [
|
||||||
|
# (fenix.packages.${system}.complete.withComponents [
|
||||||
|
# "cargo"
|
||||||
|
# "clippy"
|
||||||
|
# "rust-src"
|
||||||
|
# "rustc"
|
||||||
|
# "rustfmt"
|
||||||
|
# "rust-analyzer"
|
||||||
|
# ])
|
||||||
|
# gcc
|
||||||
|
# openssl
|
||||||
|
# pkg-config
|
||||||
|
#
|
||||||
|
# nodejs
|
||||||
|
# biome
|
||||||
|
#
|
||||||
|
# sqlite
|
||||||
|
# sqlx-cli
|
||||||
|
# lazysql
|
||||||
|
#
|
||||||
|
# gemini-cli
|
||||||
|
# claude-code
|
||||||
|
#
|
||||||
|
# typos
|
||||||
|
# tokei
|
||||||
|
# ];
|
||||||
|
# buildInputs = [ ];
|
||||||
|
# LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (nativeBuildInputs ++ buildInputs);
|
||||||
|
# };
|
||||||
|
# }
|
||||||
|
# );
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user