From a7a3c0fc1d7087e3b1b51167a6c985b14cf04e82 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Fri, 8 Jul 2022 18:34:23 +0300 Subject: [PATCH] nix: add devShell --- .gitignore | 1 + flake.nix | 10 ++++++++++ 2 files changed, 11 insertions(+) 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;