2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, alsa-lib
|
|
|
|
, cmake
|
|
|
|
, cppzmq
|
|
|
|
, doxygen
|
|
|
|
, ffmpeg
|
|
|
|
, imagemagick
|
|
|
|
, jsoncpp
|
|
|
|
, libopenshot-audio
|
2020-11-19 00:13:47 +00:00
|
|
|
, llvmPackages
|
2021-12-06 16:07:01 +00:00
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, qtbase
|
|
|
|
, qtmultimedia
|
|
|
|
, swig
|
|
|
|
, zeromq
|
2020-11-19 00:13:47 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libopenshot";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.3.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenShot";
|
|
|
|
repo = "libopenshot";
|
|
|
|
rev = "v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-axFGNq+Kg8atlaSlG8EKvxj/FwLfpDR8/e4otmnyosM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
postPatch = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
sed -i 's/{UNITTEST++_INCLUDE_DIR}/ENV{UNITTEST++_INCLUDE_DIR}/g' tests/CMakeLists.txt
|
|
|
|
'';
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
nativeBuildInputs = lib.optionals stdenv.isLinux [
|
2021-12-06 16:07:01 +00:00
|
|
|
alsa-lib
|
2022-12-28 21:21:41 +00:00
|
|
|
] ++ [
|
2021-12-06 16:07:01 +00:00
|
|
|
cmake
|
|
|
|
doxygen
|
|
|
|
pkg-config
|
|
|
|
swig
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = [
|
|
|
|
cppzmq
|
|
|
|
ffmpeg
|
|
|
|
imagemagick
|
|
|
|
jsoncpp
|
|
|
|
libopenshot-audio
|
|
|
|
python3
|
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
zeromq
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
llvmPackages.openmp
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DENABLE_RUBY=OFF"
|
|
|
|
"-DPYTHON_MODULE_PATH=${python3.sitePackages}"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00: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.
|
|
|
|
'';
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2021-12-06 16:07:01 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit libopenshot-audio;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|