2018-07-20 17:44:44 -07:00
|
|
|
{ stdenv, fetchFromGitHub
|
2017-03-29 02:47:30 -07:00
|
|
|
, pkgconfig, cmake, doxygen
|
|
|
|
, libopenshot-audio, imagemagick, ffmpeg
|
2017-08-29 03:30:47 -07:00
|
|
|
, swig, python3
|
2019-11-02 11:18:06 -07:00
|
|
|
, unittest-cpp, cppzmq, zeromq
|
2017-03-29 02:47:30 -07:00
|
|
|
, qtbase, qtmultimedia }:
|
2016-07-17 08:39:15 -07:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-11 17:27:08 -07:00
|
|
|
pname = "libopenshot";
|
2020-03-22 15:30:20 -07:00
|
|
|
version = "0.2.5";
|
2016-07-17 08:39:15 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenShot";
|
|
|
|
repo = "libopenshot";
|
|
|
|
rev = "v${version}";
|
2020-03-22 15:30:20 -07:00
|
|
|
sha256 = "1mxjkgjmjzgf628y3rscc6rqf55hxgjpmvwxlncfk1216i5xskwp";
|
2016-07-17 08:39:15 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's/{UNITTEST++_INCLUDE_DIR}/ENV{UNITTEST++_INCLUDE_DIR}/g' tests/CMakeLists.txt
|
|
|
|
sed -i 's/{_REL_PYTHON_MODULE_PATH}/ENV{_REL_PYTHON_MODULE_PATH}/g' src/bindings/python/CMakeLists.txt
|
|
|
|
export _REL_PYTHON_MODULE_PATH=$(toPythonPath $out)
|
|
|
|
'';
|
|
|
|
|
2017-03-29 02:47:30 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake doxygen ];
|
|
|
|
|
|
|
|
buildInputs =
|
2017-08-29 03:30:47 -07:00
|
|
|
[ imagemagick ffmpeg swig python3 unittest-cpp
|
2019-11-02 11:18:06 -07:00
|
|
|
cppzmq zeromq qtbase qtmultimedia ];
|
2016-07-17 08:39:15 -07:00
|
|
|
|
2019-09-08 16:38:31 -07:00
|
|
|
LIBOPENSHOT_AUDIO_DIR = libopenshot-audio;
|
2016-07-17 08:39:15 -07:00
|
|
|
"UNITTEST++_INCLUDE_DIR" = "${unittest-cpp}/include/UnitTest++";
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-08-29 03:30:47 -07:00
|
|
|
cmakeFlags = [ "-DENABLE_RUBY=OFF" ];
|
|
|
|
|
2016-07-17 08:39:15 -07:00
|
|
|
meta = {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://openshot.org/";
|
2017-03-29 02:47:30 -07: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.
|
|
|
|
'';
|
|
|
|
license = with licenses; gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = with platforms; linux;
|
2016-07-17 08:39:15 -07:00
|
|
|
};
|
|
|
|
}
|