Merge pull request #109142 from freezeboy/remove-postinstall-amfora

amfora: remove unnecessary postInstall phase for darwin
This commit is contained in:
Sandro
2021-01-13 14:04:33 +01:00
committed by GitHub

View File

@@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, buildGoModule }:
{ stdenv, lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "amfora";
@@ -13,7 +13,7 @@ buildGoModule rec {
vendorSha256 = "rOEM7iEkm42g8yJxY7qdTCSbkPMDHqlAsK7/ud8IDLY=";
postInstall = ''
postInstall = lib.optionalString (!stdenv.isDarwin) ''
sed -i "s:amfora:$out/bin/amfora:" amfora.desktop
install -Dm644 amfora.desktop -t $out/share/applications
'';