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

30 lines
783 B
Nix
Raw Normal View History

2020-07-16 04:16:51 +02:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "amfora";
2020-11-10 22:18:15 +01:00
version = "1.6.0";
2020-07-16 04:16:51 +02:00
src = fetchFromGitHub {
owner = "makeworld-the-better-one";
repo = "amfora";
rev = "v${version}";
2020-11-10 22:18:15 +01:00
sha256 = "1f5r12hmdgj26p4ss5pcpfcvqlcn19fr9xvvvk2izckcr48p4fy7";
2020-07-16 04:16:51 +02:00
};
2020-11-10 22:18:15 +01:00
vendorSha256 = "0mkk7xxfxxp1w9890mkmag11mzxhy2zmh8v1macpyp1zmzgs21f8";
2020-07-16 04:16:51 +02:00
postInstall = ''
sed -i "s:amfora:$out/bin/amfora:" amfora.desktop
install -Dm644 amfora.desktop -t $out/share/applications
'';
doCheck = false;
2020-07-16 04:16:51 +02: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 ];
};
}