From ed27463277f2774581b3598ae83221a73cc9f9fd Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Sun, 11 Feb 2024 20:23:05 +0800 Subject: [PATCH] localsend: darwin: link binary to $out/bin --- pkgs/applications/networking/localsend/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/localsend/default.nix b/pkgs/applications/networking/localsend/default.nix index 6bff0e0fbc6c..3854b347c061 100644 --- a/pkgs/applications/networking/localsend/default.nix +++ b/pkgs/applications/networking/localsend/default.nix @@ -7,6 +7,7 @@ , pkg-config , libayatana-appindicator , undmg +, makeBinaryWrapper }: let @@ -72,13 +73,14 @@ let hash = "sha256-L7V48QoOA0cjx45n+9Xav/zzCzCsZB3TBip0WGusMXg="; }; - nativeBuildInputs = [ undmg ]; + nativeBuildInputs = [ undmg makeBinaryWrapper ]; sourceRoot = "."; installPhase = '' mkdir -p $out/Applications cp -r *.app $out/Applications + makeBinaryWrapper $out/Applications/LocalSend.app/Contents/MacOS/LocalSend $out/bin/localsend ''; meta = metaCommon // {