2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2022-12-28 21:21:41 +00:00
|
|
|
, fetchpatch
|
2021-12-06 16:07:01 +00:00
|
|
|
, alsa-lib
|
|
|
|
, cmake
|
|
|
|
, doxygen
|
|
|
|
, libX11
|
|
|
|
, libXcursor
|
|
|
|
, libXext
|
|
|
|
, libXft
|
|
|
|
, libXinerama
|
|
|
|
, libXrandr
|
|
|
|
, pkg-config
|
|
|
|
, zlib
|
|
|
|
, AGL
|
|
|
|
, Cocoa
|
|
|
|
, Foundation
|
2020-11-19 00:13:47 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libopenshot-audio";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "0.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenShot";
|
|
|
|
repo = "libopenshot-audio";
|
|
|
|
rev = "v${version}";
|
2023-01-11 07:51:40 +00:00
|
|
|
sha256 = "sha256-b3BZ275oJTxWfBWtdZetUQw0t7QznL0Q0lP7cKy/avg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
patches = [
|
|
|
|
# https://forum.juce.com/t/juce-and-macos-11-arm/40285/24
|
|
|
|
./undef-fpret-on-aarch64-darwin.patch
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
doxygen
|
|
|
|
pkg-config
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isLinux [
|
|
|
|
alsa-lib
|
|
|
|
] ++ (if stdenv.isDarwin then [
|
|
|
|
AGL
|
|
|
|
Cocoa
|
|
|
|
Foundation
|
|
|
|
zlib
|
|
|
|
] else [
|
|
|
|
libX11
|
|
|
|
libXcursor
|
|
|
|
libXext
|
|
|
|
libXft
|
|
|
|
libXinerama
|
|
|
|
libXrandr
|
|
|
|
]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://openshot.org/";
|
|
|
|
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-19 00:13:47 +00:00
|
|
|
platforms = with platforms; unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|