diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..0d91a54 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.3.0 diff --git a/flake.nix b/flake.nix index b8b3b54..34e0f65 100644 --- a/flake.nix +++ b/flake.nix @@ -25,11 +25,12 @@ (builtins.substring 4 2 longDate) (builtins.substring 6 2 longDate) ]); - version = "0.1" + "+date=" + (mkDate (self.lastModifiedDate or "19700101")) + "_" + (self.shortRev or "dirty"); + version = lib.removeSuffix "\n" (builtins.readFile ./VERSION); in { overlays = { hyprland-protocols = final: prev: { hyprland-protocols = final.callPackage ./nix/default.nix {inherit version;}; + version = version + "+date=" + (mkDate (self.lastModifiedDate or "19700101")) + "_" + (self.shortRev or "dirty"); }; default = self.overlays.hyprland-protocols; }; diff --git a/meson.build b/meson.build index 586a926..5db53b7 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,6 @@ project('hyprland-protocols', - version: '0.3.0', - meson_version: '>= 0.55.0', + version: run_command('cat', 'VERSION', check: true).stdout().strip(), + meson_version: '>= 0.60.3', ) hyprland_protocols_version = meson.project_version()