summary refs log tree commit diff
path: root/pkgs/applications/audio/ario/default.nix
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2022-11-02 13:51:11 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2022-11-02 13:51:11 +0100
commit9b7282e97c5c3457682bdfe9252f74f603c4d8e5 (patch)
tree01f356150668bb3822751aaa7074463173de91f2 /pkgs/applications/audio/ario/default.nix
parent60426c0a356aba0d9a855e2edf4adc051810afc6 (diff)
downloadnixpkgs-9b7282e97c5c3457682bdfe9252f74f603c4d8e5.tar
nixpkgs-9b7282e97c5c3457682bdfe9252f74f603c4d8e5.tar.gz
nixpkgs-9b7282e97c5c3457682bdfe9252f74f603c4d8e5.tar.bz2
nixpkgs-9b7282e97c5c3457682bdfe9252f74f603c4d8e5.tar.lz
nixpkgs-9b7282e97c5c3457682bdfe9252f74f603c4d8e5.tar.xz
nixpkgs-9b7282e97c5c3457682bdfe9252f74f603c4d8e5.tar.zst
nixpkgs-9b7282e97c5c3457682bdfe9252f74f603c4d8e5.zip
ario: fix build on darwin
Diffstat (limited to 'pkgs/applications/audio/ario/default.nix')
-rw-r--r--pkgs/applications/audio/ario/default.nix16
1 files changed, 15 insertions, 1 deletions
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/";