2021-01-12 19:00:34 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, buildGoModule }:
|
2020-07-16 03:16:51 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "amfora";
|
2021-02-18 05:00:49 +00:00
|
|
|
version = "1.8.0";
|
2020-07-16 03:16:51 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "makeworld-the-better-one";
|
|
|
|
repo = "amfora";
|
|
|
|
rev = "v${version}";
|
2021-02-18 05:00:49 +00:00
|
|
|
sha256 = "sha256-q83fKs27vkrUs3+AoKZ2342llj6u3bvbLsdnT9DnVUs=";
|
2020-07-16 03:16:51 +01:00
|
|
|
};
|
|
|
|
|
2021-02-18 05:00:49 +00:00
|
|
|
vendorSha256 = "sha256-0blHwZwOcgC4LcmZSJPRvyQzArCsaMGgIw+cesO+qOo=";
|
2020-07-16 03:16:51 +01:00
|
|
|
|
2021-01-12 19:00:34 +00:00
|
|
|
postInstall = lib.optionalString (!stdenv.isDarwin) ''
|
2020-10-12 07:39:01 +01:00
|
|
|
sed -i "s:amfora:$out/bin/amfora:" amfora.desktop
|
|
|
|
install -Dm644 amfora.desktop -t $out/share/applications
|
|
|
|
'';
|
|
|
|
|
2020-07-16 03:16:51 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A fancy terminal browser for the Gemini protocol";
|
|
|
|
homepage = "https://github.com/makeworld-the-better-one/amfora";
|
|
|
|
license = with licenses; [ gpl3 ];
|
|
|
|
maintainers = with maintainers; [ deifactor ];
|
|
|
|
};
|
|
|
|
}
|