distrho-ports: fix rpath, simplify dependencies
This commit is contained in:
parent
bafbdc140c
commit
1c5fc741b7
|
@ -1,26 +1,23 @@
|
||||||
{ stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, alsaLib
|
, alsaLib
|
||||||
, curl
|
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fftwFloat
|
, fftwFloat
|
||||||
, freetype
|
, freetype
|
||||||
, glib
|
|
||||||
, lib
|
|
||||||
, libGL
|
, libGL
|
||||||
, libX11
|
, libX11
|
||||||
, libXcursor
|
, libXcursor
|
||||||
, libXext
|
, libXext
|
||||||
, libXinerama
|
|
||||||
, libXrandr
|
|
||||||
, libXrender
|
, libXrender
|
||||||
, libgcc
|
|
||||||
, libglvnd
|
|
||||||
, libsecret
|
|
||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
, pkg-config
|
, pkg-config
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let rpathLibs = [
|
||||||
|
fftwFloat
|
||||||
|
];
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "distrho-ports";
|
pname = "distrho-ports";
|
||||||
version = "2021-03-15";
|
version = "2021-03-15";
|
||||||
|
@ -34,24 +31,26 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config meson ninja ];
|
nativeBuildInputs = [ pkg-config meson ninja ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = rpathLibs ++ [
|
||||||
alsaLib
|
alsaLib
|
||||||
curl
|
|
||||||
fftwFloat
|
|
||||||
freetype
|
freetype
|
||||||
glib
|
|
||||||
libGL
|
libGL
|
||||||
libX11
|
libX11
|
||||||
libXcursor
|
libXcursor
|
||||||
libXext
|
libXext
|
||||||
libXinerama
|
|
||||||
libXrandr
|
|
||||||
libXrender
|
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; {
|
meta = with lib; {
|
||||||
homepage = "http://distrho.sourceforge.net/ports";
|
homepage = "http://distrho.sourceforge.net/ports";
|
||||||
description = "Linux audio plugins and LV2 ports";
|
description = "Linux audio plugins and LV2 ports";
|
||||||
|
|
Loading…
Reference in a new issue