From ce7a56871a06d3faf18697f91b280bde895ddba8 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Mon, 2 Sep 2024 10:18:27 +0100 Subject: [PATCH 1/2] flake: add examples/events as sub-package --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index a243d8f..94fda39 100644 --- a/flake.nix +++ b/flake.nix @@ -161,6 +161,7 @@ src = ./.; subPackages = [ + "examples/events" "examples/hyprctl" "examples/hyprtabs" ]; From 2e60e52d881523b33bd85e89581cfa5bb7ebf593 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Mon, 2 Sep 2024 10:19:58 +0100 Subject: [PATCH 2/2] flake: make the package version be the short revision --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 94fda39..cfce746 100644 --- a/flake.nix +++ b/flake.nix @@ -6,7 +6,7 @@ }; outputs = - { nixpkgs, ... }: + { self, nixpkgs, ... }: let supportedSystems = [ "x86_64-linux" @@ -156,7 +156,7 @@ default = hyprland-go; hyprland-go = pkgs.buildGoModule { pname = "hyprland-go"; - version = "0.0.1"; + version = self.shortRev or "dirty"; src = ./.;