2021-01-15 06:42:41 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch
|
2021-01-17 03:09:27 +01:00
|
|
|
, pkg-config, cmake, doxygen
|
2020-06-07 14:39:09 +02:00
|
|
|
, libopenshot-audio, imagemagick, ffmpeg_3
|
2017-08-29 12:30:47 +02:00
|
|
|
, swig, python3
|
2019-11-02 19:18:06 +01:00
|
|
|
, unittest-cpp, cppzmq, zeromq
|
2020-11-10 21:05:59 +01:00
|
|
|
, qtbase, qtmultimedia
|
|
|
|
, llvmPackages
|
|
|
|
}:
|
2016-07-17 17:39:15 +02:00
|
|
|
|
2021-01-15 06:42:41 +01:00
|
|
|
with lib;
|
2016-07-17 17:39:15 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-04-12 02:27:08 +02:00
|
|
|
pname = "libopenshot";
|
2020-03-22 23:30:20 +01:00
|
|
|
version = "0.2.5";
|
2016-07-17 17:39:15 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenShot";
|
|
|
|
repo = "libopenshot";
|
|
|
|
rev = "v${version}";
|
2020-03-22 23:30:20 +01:00
|
|
|
sha256 = "1mxjkgjmjzgf628y3rscc6rqf55hxgjpmvwxlncfk1216i5xskwp";
|
2016-07-17 17:39:15 +02:00
|
|
|
};
|
|
|
|
|
2021-01-07 15:27:53 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-build-with-gcc-10.patch";
|
|
|
|
url = "https://github.com/OpenShot/libopenshot/commit/13290364e7bea54164ab83d973951f2898ad9e23.diff";
|
|
|
|
sha256 = "0i7rpdsr8y9dphil8yq75qbh20vfqjc2hp5ahv0ws58z9wj6ngnz";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2016-07-17 17:39:15 +02:00
|
|
|
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)
|
|
|
|
'';
|
|
|
|
|
2021-01-17 03:09:27 +01:00
|
|
|
nativeBuildInputs = [ pkg-config cmake doxygen ];
|
2017-03-29 11:47:30 +02:00
|
|
|
|
|
|
|
buildInputs =
|
2020-06-07 14:39:09 +02:00
|
|
|
[ imagemagick ffmpeg_3 swig python3 unittest-cpp
|
2020-11-10 21:05:59 +01:00
|
|
|
cppzmq zeromq qtbase qtmultimedia ]
|
|
|
|
++ optional stdenv.isDarwin llvmPackages.openmp
|
|
|
|
;
|
2016-07-17 17:39:15 +02:00
|
|
|
|
2021-01-12 12:50:23 +01:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2019-09-09 01:38:31 +02:00
|
|
|
LIBOPENSHOT_AUDIO_DIR = libopenshot-audio;
|
2016-07-17 17:39:15 +02:00
|
|
|
"UNITTEST++_INCLUDE_DIR" = "${unittest-cpp}/include/UnitTest++";
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-08-29 12:30:47 +02:00
|
|
|
cmakeFlags = [ "-DENABLE_RUBY=OFF" ];
|
|
|
|
|
2016-07-17 17:39:15 +02:00
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://openshot.org/";
|
2017-03-29 11:47:30 +02: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 ];
|
2020-11-10 21:05:59 +01:00
|
|
|
platforms = with platforms; unix;
|
2016-07-17 17:39:15 +02:00
|
|
|
};
|
|
|
|
}
|