2021-01-12 20:00:34 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, buildGoModule }:
|
2020-07-16 04:16:51 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "amfora";
|
2021-12-29 15:14:14 +01:00
|
|
|
version = "1.9.2";
|
2020-07-16 04:16:51 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "makeworld-the-better-one";
|
|
|
|
repo = "amfora";
|
|
|
|
rev = "v${version}";
|
2021-12-29 15:14:14 +01:00
|
|
|
sha256 = "sha256-93xNzYPoy8VsbY2JyvDXt4J/gIbI2wzrCD83JUaP150=";
|
2020-07-16 04:16:51 +02:00
|
|
|
};
|
|
|
|
|
2021-12-08 23:16:26 +01:00
|
|
|
vendorSha256 = "sha256-XtiGj2Tr6sSBduIjBspeZpYaSTd6x6EVf3VEVMXDAD0=";
|
2020-07-16 04:16:51 +02:00
|
|
|
|
2021-01-12 20:00:34 +01:00
|
|
|
postInstall = lib.optionalString (!stdenv.isDarwin) ''
|
2020-10-12 08:39:01 +02:00
|
|
|
sed -i "s:amfora:$out/bin/amfora:" amfora.desktop
|
|
|
|
install -Dm644 amfora.desktop -t $out/share/applications
|
|
|
|
'';
|
|
|
|
|
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 ];
|
2021-02-10 19:42:05 +01:00
|
|
|
changelog = "https://github.com/makeworld-the-better-one/amfora/blob/v${version}/CHANGELOG.md";
|
2020-07-16 04:16:51 +02:00
|
|
|
};
|
|
|
|
}
|