chatterino{2,7}: fix git commit display

This commit is contained in:
neil-lobo
2025-09-01 19:03:27 -04:00
parent e6c328495a
commit 5ef43d325a
3 changed files with 18 additions and 2 deletions
+6
View File
@@ -38,6 +38,12 @@ stdenv.mkDerivation {
]
++ lib.optional enableAvifSupport libavif;
preConfigure = ''
if [[ -f "$src/GIT_HASH" ]]; then
export GIT_HASH="$(cat $src/GIT_HASH)"
fi
'';
cmakeFlags = [
(lib.cmakeBool "BUILD_WITH_QT6" true)
(lib.cmakeBool "USE_SYSTEM_QTKEYCHAIN" true)
+6 -1
View File
@@ -18,8 +18,13 @@
owner = "Chatterino";
repo = "chatterino2";
tag = "v${finalAttrs.version}";
hash = "sha256-W2sqlqL6aa68aQ3nE161G64x7K7p8iByX03g1dseQbs=";
hash = "sha256-XV8WhdjdnVrOg0PVyIhGfxC4sJ62oH03KchvGr1c2w8=";
fetchSubmodules = true;
leaveDotGit = true;
postFetch = ''
git -C $out rev-parse --short HEAD > $out/GIT_HASH
find "$out" -name .git -print0 | xargs -0 rm -rf
'';
};
passthru = {
+6 -1
View File
@@ -17,8 +17,13 @@
owner = "SevenTV";
repo = "chatterino7";
tag = "v${finalAttrs.version}";
hash = "sha256-KrAr3DcQDjb+LP+vIf0qLSSgII0m5rNwhncLNHlLaC8=";
hash = "sha256-tft0+vcE+LGPrlv4ZBgzmeF66Jf66iTjUr0pdF1vx24=";
fetchSubmodules = true;
leaveDotGit = true;
postFetch = ''
git -C $out rev-parse --short HEAD > $out/GIT_HASH
find "$out" -name .git -print0 | xargs -0 rm -rf
'';
};
passthru.updateScript = gitUpdater {