nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7buildGoModule (finalAttrs: {
8 pname = "memogram";
9 version = "0.3.0";
10
11 src = fetchFromGitHub {
12 owner = "usememos";
13 repo = "telegram-integration";
14 tag = "v${finalAttrs.version}";
15 hash = "sha256-yQmdUphgGr/db2FJ5tghUhjWt7QGs0mCAI/NrBNRABk=";
16 };
17
18 vendorHash = "sha256-8tQ5MQ0XcBIx74EFAXxXInADFd4BnlTazeIFNXNN/Ww=";
19
20 subPackages = [ "bin/memogram" ];
21
22 passthru.updateScript = nix-update-script { };
23
24 meta = {
25 description = "Easy to use integration service for syncing messages and images from a Telegram bot into your Memos";
26 homepage = "https://github.com/usememos/telegram-integration";
27 changelog = "https://github.com/usememos/telegram-integration/releases/v${finalAttrs.version}";
28 license = lib.licenses.mit;
29 maintainers = with lib.maintainers; [ merrkry ];
30 mainProgram = "memogram";
31 platforms = lib.platforms.linux;
32 };
33})