summary refs log tree commit diff
path: root/pkgs/development/libraries/libextractor
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-10-17 01:03:35 +0200
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-10-17 01:03:35 +0200
commit0d8f23653d88c060212190ed9356d92a0ecef58f (patch)
tree4072809a250a09acb47331816d2604adba5d6045 /pkgs/development/libraries/libextractor
parentf9ac2c657d28c9db12184904ef4febbacae33a4c (diff)
downloadnixpkgs-0d8f23653d88c060212190ed9356d92a0ecef58f.tar
nixpkgs-0d8f23653d88c060212190ed9356d92a0ecef58f.tar.gz
nixpkgs-0d8f23653d88c060212190ed9356d92a0ecef58f.tar.bz2
nixpkgs-0d8f23653d88c060212190ed9356d92a0ecef58f.tar.lz
nixpkgs-0d8f23653d88c060212190ed9356d92a0ecef58f.tar.xz
nixpkgs-0d8f23653d88c060212190ed9356d92a0ecef58f.tar.zst
nixpkgs-0d8f23653d88c060212190ed9356d92a0ecef58f.zip
libextractor: add darwin support
Diffstat (limited to 'pkgs/development/libraries/libextractor')
-rw-r--r--pkgs/development/libraries/libextractor/default.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/development/libraries/libextractor/default.nix b/pkgs/development/libraries/libextractor/default.nix
index 5029e84d9c4..272cd3d9aa3 100644
--- a/pkgs/development/libraries/libextractor/default.nix
+++ b/pkgs/development/libraries/libextractor/default.nix
@@ -1,6 +1,7 @@
 { lib, stdenv, fetchurl, fetchpatch, substituteAll
 , libtool, gettext, zlib, bzip2, flac, libvorbis
-, exiv2, libgsf, rpm, pkg-config
+, exiv2, libgsf, pkg-config
+, rpmSupport ? stdenv.isLinux, rpm
 , gstreamerSupport ? true, gst_all_1
 # ^ Needed e.g. for proper id3 and FLAC support.
 #   Set to `false` to decrease package closure size by about 87 MB (53%).
@@ -52,8 +53,9 @@ stdenv.mkDerivation rec {
 
   buildInputs =
    [ libtool gettext zlib bzip2 flac libvorbis exiv2
-     libgsf rpm
-   ] ++ lib.optionals gstreamerSupport
+     libgsf
+   ] ++ lib.optionals rpmSupport [ rpm ]
+     ++ lib.optionals gstreamerSupport
           ([ gst_all_1.gstreamer ] ++ gstPlugins gst_all_1)
      ++ lib.optionals gtkSupport [ glib gtk3 ]
      ++ lib.optionals videoSupport [ ffmpeg_4 libmpeg2 ];
@@ -68,7 +70,7 @@ stdenv.mkDerivation rec {
   # Checks need to be run after "make install", otherwise plug-ins are not in
   # the search path, etc.
   doCheck = false;
-  doInstallCheck = true;
+  doInstallCheck = !stdenv.isDarwin;
   installCheckPhase = "make check";
 
   meta = with lib; {
@@ -98,6 +100,6 @@ stdenv.mkDerivation rec {
     license = licenses.gpl3Plus;
 
     maintainers = [ maintainers.jorsn ];
-    platforms = platforms.linux;
+    platforms = platforms.unix;
   };
 }