2021-01-17 02:09:27 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, doxygen
|
2020-11-10 20:01:58 +00:00
|
|
|
, alsaLib, libX11, libXft, libXrandr, libXinerama, libXext, libXcursor
|
|
|
|
, zlib, AGL, Cocoa, Foundation
|
|
|
|
}:
|
2016-07-17 16:39:15 +01:00
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
with lib;
|
2016-07-17 16:39:15 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-04-12 01:25:42 +01:00
|
|
|
pname = "libopenshot-audio";
|
2020-03-22 22:29:22 +00:00
|
|
|
version = "0.2.0";
|
2016-07-17 16:39:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenShot";
|
|
|
|
repo = "libopenshot-audio";
|
|
|
|
rev = "v${version}";
|
2020-03-22 22:29:22 +00:00
|
|
|
sha256 = "13if0m5mvlqly8gmbhschzb9papkgp3yqivklhb949dhy16m8zgf";
|
2016-07-17 16:39:15 +01:00
|
|
|
};
|
|
|
|
|
2017-03-29 10:47:30 +01:00
|
|
|
nativeBuildInputs =
|
2021-01-17 02:09:27 +00:00
|
|
|
[ pkg-config cmake doxygen ];
|
2017-03-29 10:47:30 +01:00
|
|
|
|
|
|
|
buildInputs =
|
2020-11-10 20:01:58 +00:00
|
|
|
optionals stdenv.isLinux [ alsaLib ]
|
|
|
|
++ (if stdenv.isDarwin then
|
|
|
|
[ zlib AGL Cocoa Foundation ]
|
|
|
|
else
|
|
|
|
[ libX11 libXft libXrandr libXinerama libXext libXcursor ])
|
|
|
|
;
|
2016-07-17 16:39:15 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://openshot.org/";
|
2017-03-29 10:47:30 +01:00
|
|
|
description = "High-quality sound editing library";
|
|
|
|
longDescription = ''
|
|
|
|
OpenShot Audio Library (libopenshot-audio) is a program that allows the
|
|
|
|
high-quality editing and playback of audio, and is based on the amazing
|
|
|
|
JUCE library.
|
|
|
|
'';
|
|
|
|
license = with licenses; gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2020-11-10 20:01:58 +00:00
|
|
|
platforms = with platforms; unix;
|
2016-07-17 16:39:15 +01:00
|
|
|
};
|
|
|
|
}
|