Unverified Commit 5ef43d32 authored by neil-lobo's avatar neil-lobo
Browse files

chatterino{2,7}: fix git commit display

parent e6c32849
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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 {