71 lines
1.3 KiB
Nix
71 lines
1.3 KiB
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
stdenv,
|
||
|
|
fetchFromGitHub,
|
||
|
|
cmake,
|
||
|
|
pkg-config,
|
||
|
|
alsa-lib,
|
||
|
|
fontconfig,
|
||
|
|
freetype,
|
||
|
|
libX11,
|
||
|
|
libXcomposite,
|
||
|
|
libXcursor,
|
||
|
|
libXdmcp,
|
||
|
|
libXext,
|
||
|
|
libXinerama,
|
||
|
|
libXrandr,
|
||
|
|
libXtst,
|
||
|
|
ladspaH,
|
||
|
|
}:
|
||
|
|
|
||
|
|
stdenv.mkDerivation (finalAttrs: {
|
||
|
|
pname = "pluginval";
|
||
|
|
version = "1.0.4";
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "Tracktion";
|
||
|
|
repo = "pluginval";
|
||
|
|
tag = "v${finalAttrs.version}";
|
||
|
|
hash = "sha256-j4Lb3pcw0931o63OvTTaIm2UzvYDIjmnaCXGvKB4gwM=";
|
||
|
|
fetchSubmodules = true;
|
||
|
|
};
|
||
|
|
|
||
|
|
nativeBuildInputs = [
|
||
|
|
cmake
|
||
|
|
pkg-config
|
||
|
|
];
|
||
|
|
|
||
|
|
buildInputs = [
|
||
|
|
alsa-lib
|
||
|
|
fontconfig
|
||
|
|
freetype
|
||
|
|
libX11
|
||
|
|
libXcomposite
|
||
|
|
libXcursor
|
||
|
|
libXdmcp
|
||
|
|
libXext
|
||
|
|
libXinerama
|
||
|
|
libXrandr
|
||
|
|
libXtst
|
||
|
|
ladspaH
|
||
|
|
];
|
||
|
|
|
||
|
|
cmakeFlags = [
|
||
|
|
(lib.cmakeFeature "CMAKE_BUILD_TYPE" "Debug")
|
||
|
|
];
|
||
|
|
|
||
|
|
installPhase = ''
|
||
|
|
runHook preInstall
|
||
|
|
install -Dm755 pluginval_artefacts/Debug/pluginval $out/bin/pluginval
|
||
|
|
runHook postInstall
|
||
|
|
'';
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
description = "Cross-platform plugin validator and tester for AU/VST2/VST3 plugins";
|
||
|
|
homepage = "https://github.com/Tracktion/pluginval";
|
||
|
|
license = lib.licenses.gpl3Only;
|
||
|
|
maintainers = with lib.maintainers; [ magnetophon ];
|
||
|
|
platforms = lib.platforms.linux;
|
||
|
|
mainProgram = "pluginval";
|
||
|
|
};
|
||
|
|
})
|