3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/browsers/amfora/default.nix

28 lines
793 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, buildGoModule }:
2020-07-16 03:16:51 +01:00
buildGoModule rec {
pname = "amfora";
2020-12-29 13:59:31 +00:00
version = "1.7.2";
2020-07-16 03:16:51 +01:00
src = fetchFromGitHub {
owner = "makeworld-the-better-one";
repo = "amfora";
rev = "v${version}";
2020-12-29 13:59:31 +00:00
sha256 = "KAOIx401G/kB/TclhidOnUja1P+mLo/mUwAqGJfVfyg=";
2020-07-16 03:16:51 +01:00
};
2020-12-29 13:59:31 +00:00
vendorSha256 = "rOEM7iEkm42g8yJxY7qdTCSbkPMDHqlAsK7/ud8IDLY=";
2020-07-16 03:16:51 +01:00
postInstall = lib.optionalString (!stdenv.isDarwin) ''
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 ];
};
}