feat: added devshell support
This commit is contained in:
parent
c659b85f23
commit
54c733b378
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.direnv
|
2
default/.envrc
Normal file
2
default/.envrc
Normal file
|
@ -0,0 +1,2 @@
|
|||
nix_direnv_watch_file ./flake.nix
|
||||
use flake
|
1
default/.gitignore
vendored
Normal file
1
default/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.direnv
|
12
default/devshell.toml
Normal file
12
default/devshell.toml
Normal file
|
@ -0,0 +1,12 @@
|
|||
[devshell]
|
||||
name = "Patricks tolle devshell"
|
||||
|
||||
packages = [
|
||||
"nil",
|
||||
"sl"
|
||||
]
|
||||
|
||||
[[env]]
|
||||
name = "lol"
|
||||
value = "lel"
|
||||
|
|
@ -4,20 +4,23 @@
|
|||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
devshell.url = "github:numtide/devshell";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
devshell,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
pkgs = import nixpkgs {inherit system;};
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [devshell.overlays.default];
|
||||
};
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
st
|
||||
];
|
||||
devShell = pkgs.devshell.mkShell {
|
||||
imports = [(pkgs.devshell.importTOML ./devshell.toml)];
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue