1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/applications/video/openshot-qt/libopenshot.nix

52 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub
, pkgconfig, cmake, doxygen
, libopenshot-audio, imagemagick, ffmpeg
, swig, python3
, unittest-cpp, cppzmq, czmqpp
, qtbase, qtmultimedia }:
2016-07-17 16:39:15 +01:00
with stdenv.lib;
stdenv.mkDerivation rec {
2019-04-12 01:27:08 +01:00
pname = "libopenshot";
version = "0.2.3";
2016-07-17 16:39:15 +01:00
src = fetchFromGitHub {
owner = "OpenShot";
repo = "libopenshot";
rev = "v${version}";
2019-04-12 01:27:08 +01:00
sha256 = "0r1qmr8ar5n72603xkj9h065vbpznrqsq88kxxmn9n8djyyvk03k";
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
export _REL_PYTHON_MODULE_PATH=$(toPythonPath $out)
'';
nativeBuildInputs = [ pkgconfig cmake doxygen ];
buildInputs =
[ imagemagick ffmpeg swig python3 unittest-cpp
cppzmq czmqpp qtbase qtmultimedia ];
2016-07-17 16:39:15 +01:00
LIBOPENSHOT_AUDIO_DIR = "${libopenshot-audio}";
2016-07-17 16:39:15 +01:00
"UNITTEST++_INCLUDE_DIR" = "${unittest-cpp}/include/UnitTest++";
doCheck = false;
cmakeFlags = [ "-DENABLE_RUBY=OFF" ];
2016-07-17 16:39:15 +01:00
meta = {
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
};
}