Unverified Commit 06d251be authored by K900's avatar K900 Committed by GitHub
Browse files

kotatogram-desktop: minor improvements (#353214)

parents 9c3d3e0f 5bd8cc4f
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -7,6 +7,9 @@
, yasm
}:

let
  version = "1.4.9";
in
(libsForQt5.callPackage ../telegram-desktop/default.nix {
  inherit stdenv;

@@ -30,7 +33,7 @@
  withWebKitGTK = false;
}).overrideAttrs {
  pname = "kotatogram-desktop";
  version = "1.4.9-unstable-2024-09-27";
  version = "${version}-unstable-2024-09-27";

  src = fetchFromGitHub {
    owner = "kotatogram";
@@ -59,10 +62,10 @@

      It contains some useful (or purely cosmetic) features, but they could be unstable. A detailed list is available here: https://kotatogram.github.io/changes
    '';
    license = licenses.gpl3;
    license = licenses.gpl3Only;
    platforms = platforms.all;
    homepage = "https://kotatogram.github.io";
    changelog = "https://github.com/kotatogram/kotatogram-desktop/releases/tag/k{version}";
    changelog = "https://github.com/kotatogram/kotatogram-desktop/releases/tag/k${version}";
    maintainers = with maintainers; [ ilya-fedin ];
    mainProgram = if stdenv.hostPlatform.isLinux then "kotatogram-desktop" else "Kotatogram";
  };
+4 −3
Original line number Diff line number Diff line
{ stdenv, lib, kotatogram-desktop, glib-networking, webkitgtk_4_1, makeWrapper }:
{ stdenv, lib, kotatogram-desktop, glib-networking, webkitgtk_4_1, makeBinaryWrapper }:

stdenv.mkDerivation {
  pname = "${kotatogram-desktop.pname}-with-webkit";
  version = kotatogram-desktop.version;
  nativeBuildInputs = [ makeWrapper ];
  nativeBuildInputs = [ makeBinaryWrapper ];
  dontUnpack = true;
  installPhase = ''
    mkdir -p $out
@@ -12,7 +12,8 @@ stdenv.mkDerivation {
  '';
  postFixup = ''
    mkdir -p $out/bin
    makeWrapper ${kotatogram-desktop}/bin/kotatogram-desktop $out/bin/kotatogram-desktop \
    makeBinaryWrapper {${kotatogram-desktop},$out}/bin/${kotatogram-desktop.meta.mainProgram} \
      --inherit-argv0 \
      --prefix GIO_EXTRA_MODULES : ${glib-networking}/lib/gio/modules \
      --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ webkitgtk_4_1 ]}
  '';