diff options
author | Aylur <[email protected]> | 2024-11-24 00:38:14 +0000 |
---|---|---|
committer | Aylur <[email protected]> | 2024-11-24 00:38:14 +0000 |
commit | 60e0dfc945616d739c1acdf93f9e2c55dc505638 (patch) | |
tree | d2ba6e04257308bc547ead9db42adda8cc57973a | |
parent | 1351db8d5b80c7521e808f81c91977a5dd2d9d34 (diff) |
add: nix support
-rw-r--r-- | flake.nix | 2 | ||||
-rw-r--r-- | nix/appmenu-glib.nix | 35 |
2 files changed, 36 insertions, 1 deletions
@@ -62,7 +62,7 @@ notifd = mkPkg "astal-notifd" ./lib/notifd [json-glib gdk-pixbuf]; powerprofiles = mkPkg "astal-power-profiles" ./lib/powerprofiles [json-glib]; river = mkPkg "astal-river" ./lib/river [json-glib]; - tray = mkPkg "astal-tray" ./lib/tray [gtk3 gdk-pixbuf libdbusmenu-gtk3 json-glib]; + tray = mkPkg "astal-tray" ./lib/tray [json-glib (pkgs.callPackage ./nix/appmenu-glib.nix {})]; wireplumber = mkPkg "astal-wireplumber" ./lib/wireplumber [wireplumber]; gjs = pkgs.stdenvNoCC.mkDerivation { diff --git a/nix/appmenu-glib.nix b/nix/appmenu-glib.nix new file mode 100644 index 0000000..873fb93 --- /dev/null +++ b/nix/appmenu-glib.nix @@ -0,0 +1,35 @@ +{ + stdenv, + fetchFromGitLab, + pkg-config, + meson, + ninja, + gobject-introspection, + vala, + glib, +}: let + vala-panel-appmenu = fetchFromGitLab { + owner = "vala-panel-project"; + repo = "vala-panel-appmenu"; + rev = "24.05"; + hash = "sha256-8GWauw7r3zKhvGF2TNOI8GDVctUFDhtG/Vy1cNUpsVo="; + }; +in + stdenv.mkDerivation { + pname = "appmenu-glib-translator"; + version = "24.05"; + + src = "${vala-panel-appmenu}/subprojects/appmenu-glib-translator"; + + buildInputs = [ + glib + ]; + + nativeBuildInputs = [ + gobject-introspection + meson + pkg-config + ninja + vala + ]; + } |