distrho-ports: fix rpath, simplify dependencies

This commit is contained in:
Thomas Churchman 2021-04-12 15:51:39 +02:00
parent bafbdc140c
commit 1c5fc741b7

View File

@ -1,26 +1,23 @@
{ stdenv
{ lib
, stdenv
, alsaLib
, curl
, fetchFromGitHub
, fftwFloat
, freetype
, glib
, lib
, libGL
, libX11
, libXcursor
, libXext
, libXinerama
, libXrandr
, libXrender
, libgcc
, libglvnd
, libsecret
, meson
, ninja
, pkg-config
}:
let rpathLibs = [
fftwFloat
];
in
stdenv.mkDerivation rec {
pname = "distrho-ports";
version = "2021-03-15";
@ -34,24 +31,26 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config meson ninja ];
buildInputs = [
buildInputs = rpathLibs ++ [
alsaLib
curl
fftwFloat
freetype
glib
libGL
libX11
libXcursor
libXext
libXinerama
libXrandr
libXrender
libgcc
libglvnd
libsecret
];
postFixup = ''
for file in \
$out/lib/lv2/vitalium.lv2/vitalium.so \
$out/lib/vst/vitalium.so \
$out/lib/vst3/vitalium.vst3/Contents/x86_64-linux/vitalium.so
do
patchelf --set-rpath "${lib.makeLibraryPath rpathLibs}:$(patchelf --print-rpath $file)" $file
done
'';
meta = with lib; {
homepage = "http://distrho.sourceforge.net/ports";
description = "Linux audio plugins and LV2 ports";