lsp-plugins: 1.1.10 -> 1.1.13

This commit is contained in:
Bart Brouns 2019-12-23 22:32:43 +01:00
parent 9754ee33e6
commit 5aa18d71ff

View File

@ -1,40 +1,28 @@
{ stdenv, fetchFromGitHub, pkgconfig, makeWrapper { stdenv, fetchFromGitHub, pkgconfig, makeWrapper
, libsndfile, jack2Full , libsndfile, jack2Full
, libGLU, libGL, lv2, cairo , libGLU, libGL, lv2, cairo
, ladspaH, php, expat }: , ladspaH, php }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "lsp-plugins"; pname = "lsp-plugins";
version = "1.1.10"; version = "1.1.13";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sadko4u"; owner = "sadko4u";
repo = pname; repo = pname;
rev = "${pname}-${version}"; rev = "${pname}-${version}";
sha256 = "09gmwzh1gq1q2lxn8fc1bpdh02h8vr7r0i040c1nx256wgfsarqb"; sha256 = "00mhrr873kgcnqy3q0yi1r5zacfcvz7fqpzsmfhw5d095jm970al";
}; };
nativeBuildInputs = [ pkgconfig php expat ]; nativeBuildInputs = [ pkgconfig php makeWrapper ];
buildInputs = [ jack2Full libsndfile libGLU libGL lv2 cairo ladspaH makeWrapper ]; buildInputs = [ jack2Full libsndfile libGLU libGL lv2 cairo ladspaH ];
makeFlags = [ makeFlags = [
"BIN_PATH=$(out)/bin" "PREFIX=${placeholder ''out''}"
"LIB_PATH=$(out)/lib"
"DOC_PATH=$(out)/share/doc"
]; ];
NIX_CFLAGS_COMPILE = [ "-DLSP_NO_EXPERIMENTAL" ]; NIX_CFLAGS_COMPILE = [ "-DLSP_NO_EXPERIMENTAL" ];
patchPhase = ''
runHook prePatch
substituteInPlace Makefile --replace "/usr/lib" "$out/lib"
substituteInPlace ./include/container/jack/main.h --replace "/usr/lib" "$out/lib"
substituteInPlace ./include/container/vst/main.h --replace "/usr/lib" "$out/lib"
# for https://github.com/sadko4u/lsp-plugins/issues/7#issuecomment-426561549 :
sed -i '/X11__NET_WM_WINDOW_TYPE_DOCK;/d' ./src/ui/ws/x11/X11Window.cpp
runHook postPatch
'';
doCheck = true; doCheck = true;
checkPhase = '' checkPhase = ''
@ -45,7 +33,7 @@ stdenv.mkDerivation rec {
runHook postCheck runHook postCheck
''; '';
buildFlags = "release"; buildFlags = [ "release" ];
meta = with stdenv.lib; meta = with stdenv.lib;
{ description = "Collection of open-source audio plugins"; { description = "Collection of open-source audio plugins";
@ -154,6 +142,6 @@ stdenv.mkDerivation rec {
homepage = https://lsp-plug.in; homepage = https://lsp-plug.in;
maintainers = with maintainers; [ magnetophon ]; maintainers = with maintainers; [ magnetophon ];
license = licenses.gpl2; license = licenses.gpl2;
platforms = [ "x86_64-linux" ]; platforms = platforms.linux;
}; };
} }