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
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "libopenshot";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.3.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenShot";
|
|
|
|
repo = "libopenshot";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-9X2UIRDD+1kNLbV8AnnPabdO2M0OfTDxQ7xyZtsE10k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
patches = lib.optionals stdenv.hostPlatform.isDarwin [
|
2024-01-02 11:29:13 +00:00
|
|
|
# Darwin requires both Magick++ and MagickCore for a successful linkage
|
|
|
|
./0001-link-magickcore.diff
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [
|
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
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
2024-01-02 11:29:13 +00:00
|
|
|
alsa-lib
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2021-12-06 16:07:01 +00:00
|
|
|
llvmPackages.openmp
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
cmakeFlags = [
|
2024-01-02 11:29:13 +00:00
|
|
|
(lib.cmakeBool "ENABLE_RUBY" false)
|
|
|
|
(lib.cmakeOptionType "filepath" "PYTHON_MODULE_PATH" python3.sitePackages)
|
2023-02-16 17:41:37 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
passthru = {
|
|
|
|
inherit libopenshot-audio;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
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.
|
|
|
|
'';
|
2024-01-02 11:29:13 +00:00
|
|
|
license = with lib.licenses; [ gpl3Plus ];
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-01-02 11:29:13 +00:00
|
|
|
})
|