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
commit 0d1a657a25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
'';