mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
0d1a657a25
amfora: remove unnecessary postInstall phase for darwin
28 lines
793 B
Nix
28 lines
793 B
Nix
{ stdenv, lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "amfora";
|
|
version = "1.7.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "makeworld-the-better-one";
|
|
repo = "amfora";
|
|
rev = "v${version}";
|
|
sha256 = "KAOIx401G/kB/TclhidOnUja1P+mLo/mUwAqGJfVfyg=";
|
|
};
|
|
|
|
vendorSha256 = "rOEM7iEkm42g8yJxY7qdTCSbkPMDHqlAsK7/ud8IDLY=";
|
|
|
|
postInstall = lib.optionalString (!stdenv.isDarwin) ''
|
|
sed -i "s:amfora:$out/bin/amfora:" amfora.desktop
|
|
install -Dm644 amfora.desktop -t $out/share/applications
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|