mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-16 23:05:58 +01:00
CMake, Nix: add VERSION file
This commit is contained in:
parent
9514925a7c
commit
cac93f67e8
3 changed files with 6 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
cmake_minimum_required(VERSION 3.19)
|
||||
|
||||
set(VERSION 0.4.0)
|
||||
file(READ "${CMAKE_SOURCE_DIR}/VERSION" VER_RAW)
|
||||
string(STRIP ${VER_RAW} VERSION)
|
||||
|
||||
project(hyprlock
|
||||
DESCRIPTION "A gpu-accelerated screen lock for Hyprland"
|
||||
|
|
1
VERSION
Normal file
1
VERSION
Normal file
|
@ -0,0 +1 @@
|
|||
0.4.0
|
|
@ -7,6 +7,8 @@
|
|||
(builtins.substring 4 2 longDate)
|
||||
(builtins.substring 6 2 longDate)
|
||||
]);
|
||||
|
||||
version = lib.removeSuffix "\n" (builtins.readFile ../VERSION);
|
||||
in {
|
||||
default = inputs.self.overlays.hyprlock;
|
||||
|
||||
|
@ -16,7 +18,7 @@ in {
|
|||
(final: prev: {
|
||||
hyprlock = prev.callPackage ./default.nix {
|
||||
stdenv = prev.gcc13Stdenv;
|
||||
version = "0.pre" + "+date=" + (mkDate (inputs.self.lastModifiedDate or "19700101")) + "_" + (inputs.self.shortRev or "dirty");
|
||||
version = version + "+date=" + (mkDate (inputs.self.lastModifiedDate or "19700101")) + "_" + (inputs.self.shortRev or "dirty");
|
||||
inherit (final) hyprlang;
|
||||
};
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue