2017-03-29 10:47:30 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, pkgconfig, cmake, doxygen
|
|
|
|
, libopenshot-audio, imagemagick, ffmpeg
|
|
|
|
, swig, python3, ruby
|
|
|
|
, unittest-cpp, cppzmq, czmqpp
|
|
|
|
, qtbase, qtmultimedia }:
|
2016-07-17 16:39:15 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libopenshot-${version}";
|
2017-04-16 20:09:22 +01:00
|
|
|
version = "0.1.4";
|
2016-07-17 16:39:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenShot";
|
|
|
|
repo = "libopenshot";
|
|
|
|
rev = "v${version}";
|
2017-04-16 20:09:22 +01:00
|
|
|
sha256 = "1mqci103kn4l7w8i9kqzi705kxn4q596vw0sh05r1w5nbyjwcyp6";
|
2016-07-17 16:39:15 +01: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
|
|
|
|
sed -i 's/{RUBY_VENDOR_ARCH_DIR}/ENV{RUBY_VENDOR_ARCH_DIR}/g' src/bindings/ruby/CMakeLists.txt
|
|
|
|
export _REL_PYTHON_MODULE_PATH=$(toPythonPath $out)
|
|
|
|
export RUBY_VENDOR_ARCH_DIR=$out/lib/ruby/site-packages
|
|
|
|
'';
|
|
|
|
|
2017-03-29 10:47:30 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake doxygen ];
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ imagemagick ffmpeg swig python3 ruby unittest-cpp
|
|
|
|
cppzmq czmqpp qtbase qtmultimedia ];
|
2016-07-17 16:39:15 +01:00
|
|
|
|
2017-03-29 10:47:30 +01:00
|
|
|
LIBOPENSHOT_AUDIO_DIR = "${libopenshot-audio}";
|
2016-07-17 16:39:15 +01:00
|
|
|
"UNITTEST++_INCLUDE_DIR" = "${unittest-cpp}/include/UnitTest++";
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
2017-03-29 10:47:30 +01:00
|
|
|
homepage = http://openshot.org/;
|
|
|
|
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 16:39:15 +01:00
|
|
|
};
|
|
|
|
}
|