amfora: remove unnecessary postInstall phase for darwin
This commit is contained in:
parent
97c0e5d8a8
commit
5a15487897
|
@ -1,4 +1,4 @@
|
||||||
{ lib, fetchFromGitHub, buildGoModule }:
|
{ stdenv, lib, fetchFromGitHub, buildGoModule }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "amfora";
|
pname = "amfora";
|
||||||
|
@ -13,7 +13,7 @@ buildGoModule rec {
|
||||||
|
|
||||||
vendorSha256 = "0mkk7xxfxxp1w9890mkmag11mzxhy2zmh8v1macpyp1zmzgs21f8";
|
vendorSha256 = "0mkk7xxfxxp1w9890mkmag11mzxhy2zmh8v1macpyp1zmzgs21f8";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (!stdenv.isDarwin) ''
|
||||||
sed -i "s:amfora:$out/bin/amfora:" amfora.desktop
|
sed -i "s:amfora:$out/bin/amfora:" amfora.desktop
|
||||||
install -Dm644 amfora.desktop -t $out/share/applications
|
install -Dm644 amfora.desktop -t $out/share/applications
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in New Issue