From 2f71cd4c08bb4514efe43533e6a5d03535204c29 Mon Sep 17 00:00:00 2001 From: Aylur Date: Tue, 15 Oct 2024 01:26:32 +0200 Subject: refactor lua and gjs lib --- flake.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 8b8f739..e5c9018 100644 --- a/flake.nix +++ b/flake.nix @@ -43,9 +43,10 @@ packages.${system} = with pkgs; { docs = import ./docs {inherit self pkgs;}; - default = self.packages.${system}.astal; + default = self.packages.${system}.io; - astal = mkPkg "astal" ./core [gtk3 gtk-layer-shell]; + io = mkPkg "astal" ./lib/astal/io []; + astal3 = mkPkg "astal" ./lib/astal/gtk3 [self.packages.${system}.io gtk3 gtk-layer-shell]; apps = mkPkg "astal-apps" ./lib/apps [json-glib]; auth = mkPkg "astal-auth" ./lib/auth [pam]; battery = mkPkg "astal-battery" ./lib/battery [json-glib]; -- cgit v1.2.3 From dcc38701e9aa544f5f585c2bb2cc82d7fecca675 Mon Sep 17 00:00:00 2001 From: Aylur Date: Tue, 15 Oct 2024 15:08:05 +0000 Subject: nix: expose the gjs package --- flake.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index e5c9018..1b94c1c 100644 --- a/flake.nix +++ b/flake.nix @@ -59,6 +59,18 @@ river = mkPkg "astal-river" ./lib/river [json-glib]; tray = mkPkg "astal-tray" ./lib/tray [gtk3 gdk-pixbuf libdbusmenu-gtk3 json-glib]; wireplumber = mkPkg "astal-wireplumber" ./lib/wireplumber [wireplumber]; + + gjs = pkgs.stdenvNoCC.mkDerivation { + src = ./lang/gjs; + name = "astal-gjs"; + buildInputs = [ + meson + ninja + pkg-config + self.packages.${system}.io + self.packages.${system}.astal3 + ]; + }; }; }; } -- cgit v1.2.3 From 9a6c776f8fb145a602bcfe9046955d0d2f268416 Mon Sep 17 00:00:00 2001 From: Aylur Date: Tue, 22 Oct 2024 18:43:17 +0000 Subject: docs: notifd doc comments --- flake.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 1b94c1c..7f644bd 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,4 @@ { - inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - outputs = { self, nixpkgs, @@ -22,11 +20,15 @@ vala wayland wayland-scanner + python3 ]; propagatedBuildInputs = [pkgs.glib] ++ inputs; pname = name; version = readVer "${src}/version"; src = src; + postUnpack = '' + cp --remove-destination ${./lib/gir.py} $sourceRoot/gir.py + ''; outputs = ["out" "dev"]; }; in { @@ -59,6 +61,7 @@ river = mkPkg "astal-river" ./lib/river [json-glib]; tray = mkPkg "astal-tray" ./lib/tray [gtk3 gdk-pixbuf libdbusmenu-gtk3 json-glib]; wireplumber = mkPkg "astal-wireplumber" ./lib/wireplumber [wireplumber]; + # polkit = mkPkg "astal-polkit" ./lib/polkit [polkit]; gjs = pkgs.stdenvNoCC.mkDerivation { src = ./lang/gjs; @@ -73,4 +76,8 @@ }; }; }; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + }; } -- cgit v1.2.3