1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 09:04:12 +02:00

record haze version when building images and warn on out of date images

This commit is contained in:
Robin Appelman 2026-03-20 15:14:22 +01:00
commit 63e17d609f
3 changed files with 60 additions and 2 deletions

View file

@ -38,6 +38,8 @@
inherit (builtins) toString;
inherit (lib) readFile getExe concatStringsSep splitString take;
version = (fromTOML (readFile ../../Cargo.toml)).package.version;
phpVersion = concatStringsSep "." (take 2 (splitString "." php.version));
phpEnv = callPackage ./php.nix {inherit debug php;};
@ -187,7 +189,14 @@ in
'';
config = {
Cmd = [(getExe bootstrap)];
Env = ["EDITOR=hx" "WEBROOT=/var/www/html"];
Env = [
"EDITOR=hx"
"WEBROOT=/var/www/html"
"HAZE_IMAGE_VERSION=${toString version}"
];
WorkingDir = "/var/www/html";
Labels = {
"nl.icewind.haze.version" = toString version;
};
};
}