2022-02-28 14:41:35 +00:00
|
|
|
{ stdenv, lib, fetchFromGitLab, cmake, pkg-config, cairo, libxkbcommon
|
|
|
|
, xcbutilcursor, xcbutilkeysyms, xcbutil, libXrandr, libXinerama, libXcursor
|
|
|
|
, alsa-lib, libjack2, lv2, gcc-unwrapped, curl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "LibreArp-lv2";
|
2022-07-01 05:31:03 +00:00
|
|
|
version = "2.4";
|
2022-02-28 14:41:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "LibreArp";
|
|
|
|
repo = "LibreArp";
|
|
|
|
rev = "${version}-lv2";
|
2022-07-01 05:31:03 +00:00
|
|
|
hash = "sha256-x+ZPiU/ZFzrXb8szMS9Ts4JEEyXYpM8CLZHT4lNJWY8=";
|
2022-02-28 14:41:35 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
libxkbcommon
|
|
|
|
xcbutilcursor
|
|
|
|
xcbutilkeysyms
|
|
|
|
xcbutil
|
|
|
|
libXrandr
|
|
|
|
libXinerama
|
|
|
|
libXcursor
|
|
|
|
alsa-lib
|
|
|
|
libjack2
|
|
|
|
lv2
|
|
|
|
curl
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar"
|
|
|
|
"-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib"
|
|
|
|
"-DCMAKE_NM=${gcc-unwrapped}/bin/gcc-nm"
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib/lv2
|
|
|
|
cd LibreArp_artefacts/Release
|
|
|
|
cp -r LV2/LibreArp.lv2 $out/lib/lv2
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description =
|
|
|
|
"A pattern-based arpeggio generator plugin.";
|
|
|
|
homepage = "https://librearp.gitlab.io/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ magnetophon ];
|
|
|
|
};
|
|
|
|
}
|