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.2 KiB
Nix
Raw Normal View History

2024-03-11 07:39:21 +03:00
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
2024-03-11 07:39:21 +03:00
, telegram-desktop
2024-04-10 15:26:33 +03:00
, nix-update-script
2024-03-11 07:39:21 +03:00
}:
telegram-desktop.overrideAttrs (old: rec {
pname = "64gram";
2024-09-15 07:14:25 +03:00
version = "1.1.39";
2024-03-11 07:39:21 +03:00
src = fetchFromGitHub {
owner = "TDesktop-x64";
repo = "tdesktop";
rev = "v${version}";
fetchSubmodules = true;
2024-09-15 07:14:25 +03:00
hash = "sha256-+slLW177PhNvMb4ARY3X95eKVZiZTxJIPuSurTiGTls=";
2024-03-11 07:39:21 +03: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 "disable_autoupdate" true)
];
2024-04-10 15:26:33 +03:00
passthru.updateScript = nix-update-script {};
2024-03-11 07:39:21 +03: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 ];
mainProgram = "telegram-desktop";
broken = stdenv.isDarwin;
};
})