summaryrefslogtreecommitdiff
path: root/examples/vala/simple-bar/flake.nix
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-09-21 19:06:08 +0200
committerAylur <[email protected]>2024-09-21 19:07:29 +0200
commitad8d3409fec4d7d4fd728f364a139947ff1185e3 (patch)
tree3e4ac867c3e1f543fec2f045a18b9d86c990a94f /examples/vala/simple-bar/flake.nix
parenta819c41afcdde7b4bbe0ecf04dc8a84c87cc3c75 (diff)
fix(Variable): remove explicit run_dispose
let gc collect them
Diffstat (limited to 'examples/vala/simple-bar/flake.nix')
-rw-r--r--examples/vala/simple-bar/flake.nix36
1 files changed, 36 insertions, 0 deletions
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
+ ];
+ };
+ };
+ };
+}