diff options
author | Aylur <[email protected]> | 2025-03-01 20:59:09 +0100 |
---|---|---|
committer | Aylur <[email protected]> | 2025-03-01 21:02:29 +0100 |
commit | 23cdbc8088b5c308a068b432a6b03213ede68f07 (patch) | |
tree | 1e8bd6ffde5273fcd80aca0d30cbb38dbe5f9461 /examples/gtk4/simple-bar/vala/flake.nix | |
parent | dfd1f23c7562694e571d44c45aa74fcea9b1ba01 (diff) |
add gtk4 examples
Diffstat (limited to 'examples/gtk4/simple-bar/vala/flake.nix')
-rw-r--r-- | examples/gtk4/simple-bar/vala/flake.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/examples/gtk4/simple-bar/vala/flake.nix b/examples/gtk4/simple-bar/vala/flake.nix new file mode 100644 index 0000000..52db45b --- /dev/null +++ b/examples/gtk4/simple-bar/vala/flake.nix @@ -0,0 +1,52 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + astal = { + url = "github:aylur/astal"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { + self, + nixpkgs, + astal, + }: let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + + nativeBuildInputs = with pkgs; [ + meson + ninja + pkg-config + gobject-introspection + wrapGAppsHook4 + blueprint-compiler + dart-sass + vala + ]; + + astalPackages = with astal.packages.${system}; [ + io + astal4 + battery + wireplumber + network + mpris + powerprofiles + tray + bluetooth + ]; + in { + packages.${system}.default = pkgs.stdenv.mkDerivation { + name = "simple-bar"; + src = ./.; + inherit nativeBuildInputs; + buildInputs = astalPackages; + }; + + devShells.${system}.default = pkgs.mkShell { + packages = nativeBuildInputs ++ astalPackages; + }; + }; +} |