chatterino{2,7}: fix git commit display
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user