From ad8d3409fec4d7d4fd728f364a139947ff1185e3 Mon Sep 17 00:00:00 2001 From: Aylur Date: Sat, 21 Sep 2024 19:06:08 +0200 Subject: fix(Variable): remove explicit run_dispose let gc collect them --- examples/vala/simple-bar/flake.nix | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 examples/vala/simple-bar/flake.nix (limited to 'examples/vala/simple-bar/flake.nix') diff --git a/examples/vala/simple-bar/flake.nix b/examples/vala/simple-bar/flake.nix new file mode 100644 index 0000000..9b977a2 --- /dev/null +++ b/examples/vala/simple-bar/flake.nix @@ -0,0 +1,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 + ]; + }; + }; + }; +} -- cgit v1.2.3