summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-09-11 16:28:04 +0000
committerAylur <[email protected]>2024-09-11 16:28:04 +0000
commit374d76f4152ea46987203f49642d7d46aff221ab (patch)
treed2b965c6ded74c923a2f07b7a8e47ab12b50858f /flake.nix
parentdc3cec536896fa224e0ce340557aa02b8d98738f (diff)
nix: move devshell into its own file
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix36
1 files changed, 4 insertions, 32 deletions
diff --git a/flake.nix b/flake.nix
index a975e78..8ff60e7 100644
--- a/flake.nix
+++ b/flake.nix
@@ -29,6 +29,10 @@
outputs = ["out" "dev"];
};
in {
+ devShells.${system} = import ./nix/devshell.nix {
+ inherit self pkgs;
+ };
+
mkLuaPackage = import ./nix/lua.nix {
inherit pkgs;
astal = self;
@@ -52,37 +56,5 @@
tray = mkPkg "astal-tray" ./lib/tray [gtk3 gdk-pixbuf libdbusmenu-gtk3 json-glib];
wireplumber = mkPkg "astal-wireplumber" ./lib/wireplumber [wireplumber];
};
-
- devShells.${system} = let
- buildInputs = with pkgs; [
- wrapGAppsHook
- gobject-introspection
- meson
- pkg-config
- ninja
- vala
- gtk3
- gtk-layer-shell
- json-glib
- pam
- gvfs
- networkmanager
- gdk-pixbuf
- wireplumber
- libdbusmenu-gtk3
- wayland
-
- (lua.withPackages (ps: [ps.lgi]))
- (python3.withPackages (ps: [ps.pygobject3 ps.pygobject-stubs]))
- gjs
- ];
- in {
- default = pkgs.mkShell {
- inherit buildInputs;
- };
- astal = pkgs.mkShell {
- buildInputs = buildInputs ++ (builtins.attrValues self.packages.${system});
- };
- };
};
}