2021-01-15 22:18:51 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, buildGoModule }:
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "amfora";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.10.0";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "makeworld-the-better-one";
|
|
|
|
repo = "amfora";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-KOuKgxH3n4rdF+oj/TwEcRqX1sn4A9e23FNwQMhMVO4=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-T/hnlQMDOZV+QGl7xp29sBGfb4VXcXqN6PDoBFdpp4M=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
postInstall = lib.optionalString (!stdenv.isDarwin) ''
|
2020-10-27 00:29:36 +00:00
|
|
|
sed -i "s:amfora:$out/bin/amfora:" amfora.desktop
|
|
|
|
install -Dm644 amfora.desktop -t $out/share/applications
|
|
|
|
'';
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A fancy terminal browser for the Gemini protocol";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "amfora";
|
2020-07-18 16:06:22 +00:00
|
|
|
homepage = "https://github.com/makeworld-the-better-one/amfora";
|
|
|
|
license = with licenses; [ gpl3 ];
|
|
|
|
maintainers = with maintainers; [ deifactor ];
|
2021-04-05 15:23:46 +00:00
|
|
|
changelog = "https://github.com/makeworld-the-better-one/amfora/blob/v${version}/CHANGELOG.md";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
}
|