From 9b7282e97c5c3457682bdfe9252f74f603c4d8e5 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 2 Nov 2022 13:51:11 +0100 Subject: ario: fix build on darwin --- pkgs/applications/audio/ario/default.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'pkgs/applications/audio/ario/default.nix') diff --git a/pkgs/applications/audio/ario/default.nix b/pkgs/applications/audio/ario/default.nix index 68b74821ec3..f9fedfcc28f 100644 --- a/pkgs/applications/audio/ario/default.nix +++ b/pkgs/applications/audio/ario/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchurl +, autoreconfHook , pkg-config , intltool , avahi @@ -24,7 +25,14 @@ stdenv.mkDerivation rec { sha256 = "16nhfb3h5pc7flagfdz7xy0iq6kvgy6h4bfpi523i57rxvlfshhl"; }; - nativeBuildInputs = [ pkg-config gettext intltool wrapGAppsHook ]; + nativeBuildInputs = [ + autoreconfHook + pkg-config + gettext + intltool + wrapGAppsHook + ]; + buildInputs = [ avahi curl @@ -36,6 +44,12 @@ stdenv.mkDerivation rec { taglib ]; + postInstall = lib.optionalString stdenv.isDarwin '' + for file in $out/lib/ario/plugins/*.dylib; do + ln -s $file $out/lib/ario/plugins/$(basename $file .dylib).so + done + ''; + meta = with lib; { description = "GTK client for MPD (Music player daemon)"; homepage = "http://ario-player.sourceforge.net/"; -- cgit 1.4.1