2021-11-06 16:45:30 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, alsa-lib
|
|
|
|
, cmake
|
|
|
|
, cppzmq
|
|
|
|
, doxygen
|
|
|
|
, ffmpeg
|
|
|
|
, imagemagick
|
|
|
|
, jsoncpp
|
|
|
|
, libopenshot-audio
|
2020-11-10 20:05:59 +00:00
|
|
|
, llvmPackages
|
2021-11-06 16:45:30 +00:00
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, qtbase
|
|
|
|
, qtmultimedia
|
|
|
|
, swig
|
|
|
|
, zeromq
|
2020-11-10 20:05:59 +00:00
|
|
|
}:
|
2016-07-17 16:39:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-12 01:27:08 +01:00
|
|
|
pname = "libopenshot";
|
2021-11-06 16:45:30 +00:00
|
|
|
version = "0.2.7";
|
2016-07-17 16:39:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenShot";
|
|
|
|
repo = "libopenshot";
|
|
|
|
rev = "v${version}";
|
2021-11-06 16:45:30 +00:00
|
|
|
sha256 = "sha256-aF8wrPxFIjCy5gw72e/WyL/Wcx9tUGDkrqHS+ZDVK0U=";
|
2016-07-17 16:39:15 +01:00
|
|
|
};
|
|
|
|
|
2021-01-07 14:27:53 +00:00
|
|
|
postPatch = ''
|
2016-07-17 16:39:15 +01:00
|
|
|
sed -i 's/{UNITTEST++_INCLUDE_DIR}/ENV{UNITTEST++_INCLUDE_DIR}/g' tests/CMakeLists.txt
|
2021-11-06 16:45:30 +00:00
|
|
|
sed -i 's/{_REL_PYTHON_MODULE_PATH}/ENV{_REL_PYTHON_MODULE_PATH}/g' bindings/python/CMakeLists.txt
|
2016-07-17 16:39:15 +01:00
|
|
|
export _REL_PYTHON_MODULE_PATH=$(toPythonPath $out)
|
|
|
|
'';
|
|
|
|
|
2021-11-06 16:45:30 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
alsa-lib
|
|
|
|
cmake
|
|
|
|
doxygen
|
|
|
|
pkg-config
|
|
|
|
swig
|
|
|
|
];
|
2017-03-29 10:47:30 +01:00
|
|
|
|
2021-11-06 16:45:30 +00:00
|
|
|
buildInputs = [
|
|
|
|
cppzmq
|
|
|
|
ffmpeg
|
|
|
|
imagemagick
|
|
|
|
jsoncpp
|
|
|
|
libopenshot-audio
|
|
|
|
python3
|
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
zeromq
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
llvmPackages.openmp
|
|
|
|
];
|
2016-07-17 16:39:15 +01:00
|
|
|
|
2021-01-12 11:50:23 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2016-07-17 16:39:15 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2017-08-29 11:30:47 +01:00
|
|
|
cmakeFlags = [ "-DENABLE_RUBY=OFF" ];
|
|
|
|
|
2021-11-06 16:45:30 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://openshot.org/";
|
2017-03-29 10:47:30 +01:00
|
|
|
description = "Free, open-source video editor library";
|
|
|
|
longDescription = ''
|
|
|
|
OpenShot Library (libopenshot) is an open-source project dedicated to
|
|
|
|
delivering high quality video editing, animation, and playback solutions
|
|
|
|
to the world. API currently supports C++, Python, and Ruby.
|
|
|
|
'';
|
2021-11-06 16:45:30 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2017-03-29 10:47:30 +01:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2021-11-06 16:45:30 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit libopenshot-audio;
|
2016-07-17 16:39:15 +01:00
|
|
|
};
|
|
|
|
}
|