summaryrefslogtreecommitdiff
path: root/examples/vala/simple-bar/flake.nix
blob: 9b977a203b3d10dfda93967ba66dd78e291f3bde (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
{
  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 {
        pname = "simple-bar";
        version = "git";
        src = ./.;

        nativeBuildInputs = [
          pkgs.meson
          pkgs.ninja
          pkgs.pkg-config
          pkgs.vala
          pkgs.gobject-introspection
        ];

        buildInputs = [
          astal.packages.${system}.default
          astal.packages.${system}.battery
        ];
      };
    };
  };
}