nixpkgs/pkgs/applications/networking/browsers/amfora/default.nix

30 lines
783 B
Nix
Raw Normal View History

2020-07-16 03:16:51 +01:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "amfora";
2020-09-04 03:30:22 +01:00
version = "1.5.0";
2020-07-16 03:16:51 +01:00
src = fetchFromGitHub {
owner = "makeworld-the-better-one";
repo = "amfora";
rev = "v${version}";
2020-09-04 03:30:22 +01:00
sha256 = "011h5xzwiafh3fdp9wil8n618p45ph9swa66lw6s82ijpiizz79s";
2020-07-16 03:16:51 +01:00
};
2020-09-04 03:30:22 +01:00
vendorSha256 = "10f3bh3r3jc1185r8r1ihg8rprdpl8qwg5b6wqwsda96ydkbpi2b";
2020-07-16 03:16:51 +01:00
postInstall = ''
sed -i "s:amfora:$out/bin/amfora:" amfora.desktop
install -Dm644 amfora.desktop -t $out/share/applications
'';
doCheck = false;
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 ];
};
}