nixpkgs/pkgs/by-name/_6/_64gram/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.3 KiB
Nix
Raw Normal View History

2024-03-11 04:39:21 +00:00
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
2024-03-11 04:39:21 +00:00
, telegram-desktop
2024-04-10 12:26:33 +00:00
, nix-update-script
2024-03-11 04:39:21 +00:00
}:
telegram-desktop.overrideAttrs (old: rec {
pname = "64gram";
2024-10-29 10:59:42 +00:00
version = "1.1.43";
2024-03-11 04:39:21 +00:00
src = fetchFromGitHub {
owner = "TDesktop-x64";
repo = "tdesktop";
rev = "v${version}";
fetchSubmodules = true;
2024-10-29 10:59:42 +00:00
hash = "sha256-vRiAIGY3CU5+hsdn8xiNbgvSM3eGRVwnvsSmSoaDN/k=";
2024-03-11 04:39:21 +00:00
};
patches = (old.patches or []) ++ [
(fetchpatch {
url = "https://github.com/TDesktop-x64/tdesktop/commit/c996ccc1561aed089c8b596f6ab3844335bbf1df.patch";
revert = true;
hash = "sha256-Hz7BXl5z4owe31l9Je3QOXT8FAyKcbsXsKjGfCmXhzE=";
})
];
cmakeFlags = (old.cmakeFlags or []) ++ [
(lib.cmakeBool "DESKTOP_APP_DISABLE_AUTOUPDATE" true)
(lib.cmakeBool "disable_autoupdate" true)
];
2024-04-10 12:26:33 +00:00
passthru.updateScript = nix-update-script {};
2024-03-11 04:39:21 +00:00
meta = with lib; {
description = "Unofficial Telegram Desktop providing Windows 64bit build and extra features";
license = licenses.gpl3Only;
platforms = platforms.all;
homepage = "https://github.com/TDesktop-x64/tdesktop";
changelog = "https://github.com/TDesktop-x64/tdesktop/releases/tag/v${version}";
maintainers = with maintainers; [ clot27 ];
2024-11-02 21:11:50 +00:00
mainProgram = if stdenv.hostPlatform.isLinux then "telegram-desktop" else "Telegram";
2024-03-11 04:39:21 +00:00
};
})