libsForQt5.libopenshot-audio: enable on darwin

This commit is contained in:
Dmitry Kalinkin 2020-11-10 15:01:58 -05:00
parent dd1b7e377f
commit 621f649bfb
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333
2 changed files with 14 additions and 4 deletions

View File

@ -1,4 +1,7 @@
{ stdenv, fetchFromGitHub, pkgconfig, cmake, doxygen, alsaLib , libX11, libXft, libXrandr, libXinerama, libXext, libXcursor }:
{ stdenv, fetchFromGitHub, pkgconfig, cmake, doxygen
, alsaLib, libX11, libXft, libXrandr, libXinerama, libXext, libXcursor
, zlib, AGL, Cocoa, Foundation
}:
with stdenv.lib;
stdenv.mkDerivation rec {
@ -16,7 +19,12 @@ stdenv.mkDerivation rec {
[ pkgconfig cmake doxygen ];
buildInputs =
[ alsaLib libX11 libXft libXrandr libXinerama libXext libXcursor ];
optionals stdenv.isLinux [ alsaLib ]
++ (if stdenv.isDarwin then
[ zlib AGL Cocoa Foundation ]
else
[ libX11 libXft libXrandr libXinerama libXext libXcursor ])
;
doCheck = false;
@ -30,6 +38,6 @@ stdenv.mkDerivation rec {
'';
license = with licenses; gpl3Plus;
maintainers = with maintainers; [ AndersonTorres ];
platforms = with platforms; linux;
platforms = with platforms; unix;
};
}

View File

@ -15355,7 +15355,9 @@ in
packagekit-qt = callPackage ../tools/package-management/packagekit/qt.nix { };
libopenshot-audio = callPackage ../applications/video/openshot-qt/libopenshot-audio.nix { };
libopenshot-audio = callPackage ../applications/video/openshot-qt/libopenshot-audio.nix {
inherit (darwin.apple_sdk.frameworks) AGL Cocoa Foundation;
};
libqglviewer = callPackage ../development/libraries/libqglviewer {
inherit (darwin.apple_sdk.frameworks) AGL;