seems to work now
This commit is contained in:
parent
8f61038362
commit
6fbe54623b
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, binutils, patchelf, expat, xorg, gdk_pixbuf, glib, gnome2, cairo, atk, freetype, fontconfig, dbus, nss, nspr, gtk2-x11, alsaLib, cups }:
|
{ stdenv, fetchurl, binutils, patchelf, makeWrapper, expat, xorg, gdk_pixbuf, glib, gnome2, cairo, atk, freetype, fontconfig, dbus, nss, nspr, gtk2-x11, alsaLib, cups, libpulseaudio, libudev }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "inboxer-${version}";
|
name = "inboxer-${version}";
|
||||||
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
|||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
ar p $src data.tar.xz | tar xJ
|
ar p $src data.tar.xz | tar xJ
|
||||||
'';
|
'';
|
||||||
buildInputs = [ binutils patchelf ];
|
buildInputs = [ binutils patchelf makeWrapper ];
|
||||||
|
|
||||||
preFixup = with stdenv.lib; let
|
preFixup = with stdenv.lib; let
|
||||||
lpath = makeLibraryPath [
|
lpath = makeLibraryPath [
|
||||||
@ -52,12 +52,23 @@ stdenv.mkDerivation rec {
|
|||||||
gnome2.GConf
|
gnome2.GConf
|
||||||
expat
|
expat
|
||||||
stdenv.cc.cc.lib
|
stdenv.cc.cc.lib
|
||||||
|
libpulseaudio
|
||||||
|
libudev
|
||||||
];
|
];
|
||||||
in ''
|
in ''
|
||||||
|
patchelf \
|
||||||
|
--set-rpath "$out/opt/Inboxer:${lpath}" \
|
||||||
|
$out/opt/Inboxer/libnode.so
|
||||||
|
patchelf \
|
||||||
|
--set-rpath "$out/opt/Inboxer:${lpath}" \
|
||||||
|
$out/opt/Inboxer/libffmpeg.so
|
||||||
|
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "$out/opt/Inboxer:${lpath}" \
|
--set-rpath "$out/opt/Inboxer:${lpath}" \
|
||||||
$out/opt/Inboxer/inboxer
|
$out/opt/Inboxer/inboxer
|
||||||
|
|
||||||
|
wrapProgram $out/opt/Inboxer/inboxer --set LD_LIBRARY_PATH "${xorg.libxkbfile}/lib:${lpath}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user