Extensible devshell setup
This commit is contained in:
parent
d60ee39658
commit
ecb1325477
4
devshells/default.nix
Normal file
4
devshells/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
args: {
|
||||
visonum = import ./visonum.nix args;
|
||||
}
|
||||
|
5
devshells/visonum.nix
Normal file
5
devshells/visonum.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Shell containing the tools I most commonly use for work
|
||||
{ pkgs, inputs }:
|
||||
pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [ purescript spago typescript nodejs ];
|
||||
}
|
15
flake.nix
15
flake.nix
|
@ -78,10 +78,17 @@
|
|||
|
||||
# Devshell for bootstrapping
|
||||
# Acessible through 'nix develop'
|
||||
devShells = forAllSystems (system:
|
||||
let pkgs = nixpkgs.legacyPackages.${system};
|
||||
in import ./shell.nix { inherit pkgs; }
|
||||
);
|
||||
devShells = forAllSystems
|
||||
(system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
default = import ./shell.nix { inherit pkgs; };
|
||||
devshells = import ./devshells
|
||||
{
|
||||
inherit pkgs; inherit inputs;
|
||||
};
|
||||
in
|
||||
devshells // { inherit default; });
|
||||
|
||||
# Custom packages and modifications, exported as overlays
|
||||
overlays = import ./overlays;
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
# Shell for bootstrapping flake-enabled nix and home-manager
|
||||
# You can enter it through 'nix develop' or (legacy) 'nix-shell'
|
||||
{ pkgs ? (import ./nixpkgs.nix) { } }: {
|
||||
default = pkgs.mkShell {
|
||||
{ pkgs ? (import ./nixpkgs.nix) { } }:
|
||||
pkgs.mkShell {
|
||||
# Enable experimental features without having to specify the argument
|
||||
NIX_CONFIG = "experimental-features = nix-command flakes";
|
||||
nativeBuildInputs = with pkgs; [ nix home-manager git ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue