aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMihai Fufezan <[email protected]>2022-07-08 18:34:23 +0300
committerMihai Fufezan <[email protected]>2022-07-08 18:34:23 +0300
commita7a3c0fc1d7087e3b1b51167a6c985b14cf04e82 (patch)
treed083b6212e16b2bc726157ecf7742520f20052cb
parentc8c5e0b90a950bb20c5be5b1c1009889d8540529 (diff)
downloadHyprland-a7a3c0fc1d7087e3b1b51167a6c985b14cf04e82.tar.gz
Hyprland-a7a3c0fc1d7087e3b1b51167a6c985b14cf04e82.zip
nix: add devShell
-rw-r--r--.gitignore1
-rw-r--r--flake.nix10
2 files changed, 11 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index c5ae0678..a43470cd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,6 +12,7 @@ _deps
build/
result
/.vscode/
+.envrc
*.o
*-protocol.c
diff --git a/flake.nix b/flake.nix
index e7ec284c..0fa5fcfb 100644
--- a/flake.nix
+++ b/flake.nix
@@ -48,6 +48,16 @@
default = self.packages.${system}.hyprland;
});
+ devShells = genSystems (system: {
+ default = pkgsFor.${system}.mkShell.override {stdenv = pkgsFor.${system}.gcc12Stdenv;} {
+ name = "hyprland-shell";
+ inputsFrom = [
+ self.packages.${system}.wlroots-hyprland
+ self.packages.${system}.hyprland
+ ];
+ };
+ });
+
formatter = genSystems (system: pkgsFor.${system}.alejandra);
nixosModules.default = import ./nix/module.nix self;