Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.9 kB · 92 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293{ lib, stdenv, fetchFromGitHub, alsa-lib, cmake, cppzmq, doxygen, ffmpeg, imagemagick, jsoncpp, libopenshot-audio, llvmPackages, pkg-config, python3, qtbase, qtmultimedia, swig, zeromq,}:
stdenv.mkDerivation (finalAttrs: { pname = "libopenshot"; version = "0.4.0";
src = fetchFromGitHub { owner = "OpenShot"; repo = "libopenshot"; rev = "v${finalAttrs.version}"; hash = "sha256-zroTnJRYIIglhha6jQvaVNTgnIV6kUWcu7s5zEvgH6Q="; };
patches = lib.optionals stdenv.hostPlatform.isDarwin [ # Darwin requires both Magick++ and MagickCore for a successful linkage ./0001-link-magickcore.diff ];
nativeBuildInputs = [ cmake doxygen pkg-config swig ];
buildInputs = [ cppzmq ffmpeg imagemagick jsoncpp libopenshot-audio python3 qtbase qtmultimedia zeromq ] ++ lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.openmp ];
strictDeps = true;
dontWrapQtApps = true;
doCheck = true;
cmakeFlags = [ (lib.cmakeBool "ENABLE_RUBY" false) (lib.cmakeBool "ENABLE_PYTHON" true) (lib.cmakeOptionType "filepath" "PYTHON_EXECUTABLE" (lib.getExe python3)) (lib.cmakeOptionType "filepath" "PYTHON_MODULE_PATH" python3.sitePackages) ];
passthru = { inherit libopenshot-audio; };
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 lib.licenses; [ gpl3Plus ]; maintainers = with lib.maintainers; [ ]; platforms = lib.platforms.unix; };})