summaryrefslogtreecommitdiff
path: root/examples/gtk3/vala/simple-bar/flake.nix
blob: d13c649834bd0d3349c21bb6a56d9e99febc1a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
    astal.url = "github:aylur/astal";
  };

  outputs = {
    self,
    nixpkgs,
    astal,
  }: let
    system = "x86_64-linux";
    pkgs = nixpkgs.legacyPackages.${system};
  in {
    packages.${system} = {
      default = pkgs.stdenv.mkDerivation {
        name = "simple-bar";
        src = ./.;

        nativeBuildInputs = with pkgs; [
          meson
          ninja
          pkg-config
          vala
          gobject-introspection
          dart-sass
        ];

        buildInputs = [
          astal.packages.${system}.io
          astal.packages.${system}.astal3
          astal.packages.${system}.battery
          astal.packages.${system}.wireplumber
          astal.packages.${system}.network
          astal.packages.${system}.tray
          astal.packages.${system}.mpris
          astal.packages.${system}.hyprland
        ];
      };
    };
  };
}