nix: add devShell

This commit is contained in:
Mihai Fufezan 2022-07-08 18:34:23 +03:00
parent c8c5e0b90a
commit a7a3c0fc1d
No known key found for this signature in database
GPG key ID: 5899325F2F120900
2 changed files with 11 additions and 0 deletions

1
.gitignore vendored
View file

@ -12,6 +12,7 @@ _deps
build/ build/
result result
/.vscode/ /.vscode/
.envrc
*.o *.o
*-protocol.c *-protocol.c

View file

@ -48,6 +48,16 @@
default = self.packages.${system}.hyprland; 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); formatter = genSystems (system: pkgsFor.${system}.alejandra);
nixosModules.default = import ./nix/module.nix self; nixosModules.default = import ./nix/module.nix self;