set version in flake

This commit is contained in:
2025-12-15 21:10:23 +03:00
parent 8a2b224fd3
commit a5d6503305
3 changed files with 37 additions and 21 deletions

View File

@@ -20,7 +20,14 @@
stdenv.mkDerivation rec {
pname = "clrsync";
version = "unstable-2024-12-15";
baseVersion = "0.1.4";
version =
if src ? rev then
"${baseVersion}+${toString src.revCount}.git.${lib.substring 0 7 src.rev}"
else
baseVersion;
src = lib.cleanSourceWith {
src = ./.;
@@ -70,6 +77,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DUSE_SYSTEM_GLFW=ON"
"-DCLRSYNC_SEMVER=${version}"
];
installPhase = ''