mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 01:25:59 +01:00
CMake, Nix: add VERSION file
This commit is contained in:
parent
a6f1ad1560
commit
949f105f53
3 changed files with 6 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
|||
cmake_minimum_required(VERSION 3.19)
|
||||
|
||||
set(AQUAMARINE_VERSION "0.1.0")
|
||||
file(READ "${CMAKE_SOURCE_DIR}/VERSION" VER_RAW)
|
||||
string(STRIP ${VER_RAW} AQUAMARINE_VERSION)
|
||||
|
||||
add_compile_definitions(AQUAMARINE_VERSION="${AQUAMARINE_VERSION}")
|
||||
|
||||
project(aquamarine
|
||||
|
|
1
VERSION
Normal file
1
VERSION
Normal file
|
@ -0,0 +1 @@
|
|||
0.1.0
|
|
@ -36,6 +36,7 @@
|
|||
(builtins.substring 4 2 longDate)
|
||||
(builtins.substring 6 2 longDate)
|
||||
]);
|
||||
version = lib.removeSuffix "\n" (builtins.readFile ./VERSION);
|
||||
in {
|
||||
overlays = {
|
||||
default = self.overlays.aquamarine;
|
||||
|
@ -47,7 +48,7 @@
|
|||
(final: prev: {
|
||||
aquamarine = final.callPackage ./nix/default.nix {
|
||||
stdenv = final.gcc13Stdenv;
|
||||
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");
|
||||
};
|
||||
aquamarine-with-tests = final.aquamarine.override {doCheck = true;};
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue