mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
fdd654a7a9
Also, libopenshot and libopenshot-audio are now directly referenced on all-packages.nix.
52 lines
1.7 KiB
Nix
52 lines
1.7 KiB
Nix
{ stdenv, fetchFromGitHub
|
|
, pkgconfig, cmake, doxygen
|
|
, libopenshot-audio, imagemagick, ffmpeg
|
|
, swig, python3, ruby
|
|
, unittest-cpp, cppzmq, czmqpp
|
|
, qtbase, qtmultimedia }:
|
|
|
|
with stdenv.lib;
|
|
stdenv.mkDerivation rec {
|
|
name = "libopenshot-${version}";
|
|
version = "0.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenShot";
|
|
repo = "libopenshot";
|
|
rev = "v${version}";
|
|
sha256 = "0slszl6w96rhxhi6agw85dc4gmpab2qw03mq32g4qrirz68anz6f";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkgconfig cmake doxygen ];
|
|
|
|
buildInputs =
|
|
[ imagemagick ffmpeg swig python3 ruby unittest-cpp
|
|
cppzmq czmqpp qtbase qtmultimedia ];
|
|
|
|
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 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;
|
|
};
|
|
}
|