2017-03-24 21:12:06 +01:00
|
|
|
{ stdenv, fetchurl, fetchFromGitHub, callPackage, cmake, doxygen
|
|
|
|
, imagemagick, ffmpeg, qtbase, qtmultimedia, swig, python3, ruby, unittest-cpp
|
2016-09-27 20:09:54 +02:00
|
|
|
, cppzmq, czmqpp
|
|
|
|
}:
|
2016-07-17 17:39:15 +02:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
libopenshot_audio = callPackage ./libopenshot-audio.nix {};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libopenshot-${version}";
|
2016-09-27 20:09:54 +02:00
|
|
|
version = "0.1.2";
|
2016-07-17 17:39:15 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenShot";
|
|
|
|
repo = "libopenshot";
|
|
|
|
rev = "v${version}";
|
2016-09-27 20:09:54 +02:00
|
|
|
sha256 = "00051ipb8y4z9j5m5smwm1ahv755k0glarwic8fv5b9fzryfbrdm";
|
2016-07-17 17:39:15 +02: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
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cmake doxygen
|
2017-03-24 21:12:06 +01:00
|
|
|
imagemagick ffmpeg qtbase qtmultimedia swig python3 ruby
|
2016-09-27 20:09:54 +02:00
|
|
|
unittest-cpp cppzmq czmqpp
|
2016-07-17 17:39:15 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
LIBOPENSHOT_AUDIO_DIR = "${libopenshot_audio}";
|
|
|
|
"UNITTEST++_INCLUDE_DIR" = "${unittest-cpp}/include/UnitTest++";
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://openshot.org/";
|
|
|
|
description = "Free, open-source video editor";
|
|
|
|
license = licenses.gpl3Plus;
|
2017-03-05 20:47:24 +01:00
|
|
|
maintainers = [];
|
2016-07-17 17:39:15 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|