lol
1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 buildGoModule,
6}:
7
8buildGoModule rec {
9 pname = "amfora";
10 version = "1.11.0";
11
12 src = fetchFromGitHub {
13 owner = "makeworld-the-better-one";
14 repo = "amfora";
15 tag = "v${version}";
16 hash = "sha256-6nY/wVqhSm+ZLA8ktrgmxoYiHK1r96aNbSf8+1YMXf8=";
17 };
18
19 vendorHash = "sha256-zZuFZtG0KKJ29t/9XyjRPIvyZqItxH2KwyKcAx3nuNM=";
20
21 postInstall = lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
22 sed -i "s:amfora:$out/bin/amfora:" amfora.desktop
23 install -Dm644 amfora.desktop -t $out/share/applications
24 '';
25
26 meta = {
27 description = "Fancy terminal browser for the Gemini protocol";
28 mainProgram = "amfora";
29 homepage = "https://github.com/makeworld-the-better-one/amfora";
30 license = with lib.licenses; [ gpl3 ];
31 maintainers = with lib.maintainers; [ deifactor ];
32 changelog = "https://github.com/makeworld-the-better-one/amfora/blob/v${version}/CHANGELOG.md";
33 };
34}