renoise: needs only mpg123 library
Moved in postFixup because fixup phase shrinks RPATH
This commit is contained in:
parent
f31ea5a2d5
commit
af31c4ef4c
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, libX11, libXext, libXcursor, libXrandr, libjack2, alsaLib,
|
{ stdenv, fetchurl, libX11, libXext, libXcursor, libXrandr, libjack2, alsaLib
|
||||||
mpg123, makeWrapper, releasePath ? null }:
|
, mpg123, releasePath ? null }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
@ -36,8 +36,7 @@ stdenv.mkDerivation rec {
|
|||||||
releasePath
|
releasePath
|
||||||
else throw "Platform is not supported by Renoise";
|
else throw "Platform is not supported by Renoise";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
buildInputs = [ alsaLib libjack2 libX11 libXcursor libXext libXrandr ];
|
||||||
buildInputs = [ libX11 libXext libXcursor libXrandr alsaLib libjack2 ];
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
cp -r Resources $out
|
cp -r Resources $out
|
||||||
@ -56,9 +55,13 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
mkdir $out/bin
|
mkdir $out/bin
|
||||||
ln -s $out/renoise $out/bin/renoise
|
ln -s $out/renoise $out/bin/renoise
|
||||||
|
'';
|
||||||
|
|
||||||
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) --set-rpath $out/lib $out/renoise
|
postFixup = ''
|
||||||
wrapProgram "$out/renoise" --prefix LD_LIBRARY_PATH : "${mpg123}/lib"
|
patchelf \
|
||||||
|
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
||||||
|
--set-rpath ${mpg123}/lib:$out/lib \
|
||||||
|
$out/renoise
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user