diff --git a/CMakeLists.txt b/CMakeLists.txt index 6173835..6007fa0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,11 @@ cmake_minimum_required(VERSION 3.12) + +file(READ "${CMAKE_SOURCE_DIR}/VERSION" VER_RAW) +string(STRIP ${VER_RAW} VERSION) + project(hyprpicker DESCRIPTION "A blazing fast wayland wallpaper utility" + VERSION ${VERSION} ) set(CMAKE_MESSAGE_LOG_LEVEL "STATUS") 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 9613a74..54d781c 100644 --- a/flake.nix +++ b/flake.nix @@ -20,11 +20,12 @@ (builtins.substring 4 2 longDate) (builtins.substring 6 2 longDate) ]); + version = lib.removeSuffix "\n" (builtins.readFile ./VERSION); in { overlays.default = _: prev: rec { hyprpicker = prev.callPackage ./nix/default.nix { stdenv = prev.gcc12Stdenv; - version = "0.pre" + "+date=" + (mkDate (self.lastModifiedDate or "19700101")) + "_" + (self.shortRev or "dirty"); + version = version + "+date=" + (mkDate (self.lastModifiedDate or "19700101")) + "_" + (self.shortRev or "dirty"); wayland-protocols = prev.wayland-protocols.overrideAttrs (self: super: { version = "1.34"; src = prev.fetchurl {