@ -1,14 +1,14 @@
{ stdenv , requireFile , SDL , libpulseaudio , alsaLib }:
{ stdenv , requireFile , SDL , libpulseaudio , alsaLib , runtimeShell }:
stdenv . mkDerivation rec {
name = " v e s s e l - 1 2 0 8 2 0 1 2 " ;
goBuyItNow = ''
goBuyItNow = ''
We cannot download the full version automatically , as you require a license .
Once you bought a license , you need to add your downloaded version to the nix store .
You can do this by using " n i x - p r e f e t c h - u r l f i l e : / / \$ P W D / ${ name } - b i n " in the
directory where you saved it .
'' ;
'' ;
src = if ( stdenv . isi686 ) then
requireFile {
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
phases = " i n s t a l l P h a s e " ;
ld_preload = ./isatty.c ;
libPath = stdenv . lib . makeLibraryPath [ stdenv . cc . cc stdenv . cc . libc ]
libPath = stdenv . lib . makeLibraryPath [ stdenv . cc . cc stdenv . cc . libc ]
+ " : " + stdenv . lib . makeLibraryPath [ SDL libpulseaudio alsaLib ] ;
installPhase = ''
@ -30,11 +30,11 @@ stdenv.mkDerivation rec {
# allow scripting of the mojoinstaller
gcc - fPIC - shared - o isatty . so $ ld_preload
echo @ @ @
echo @ @ @
echo @ @ @ this next step appears to hang for a while
echo @ @ @
echo @ @ @
# if we call ld.so $(bin) we don't need to set the ELF interpreter, and save a patchelf step.
# if we call ld.so $(bin) we don't need to set the ELF interpreter, and save a patchelf step.
LD_PRELOAD = ./isatty.so $ ( cat $ NIX_CC/nix-support/dynamic-linker ) $ src < < IM_A_BOT
n
$ out/libexec/strangeloop/vessel /
@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
rm $ out/libexec/strangeloop/vessel/x86/libstdc++ *
# props to Ethan Lee (the Vessel porter) for understanding
# how $ORIGIN works in rpath. There is hope for humanity.
# how $ORIGIN works in rpath. There is hope for humanity.
patchelf \
- - interpreter " $ ( c a t $ N I X _ C C / n i x - s u p p o r t / d y n a m i c - l i n k e r ) " \
- - set-rpath $ libPath:$out/libexec/strangeloop/vessel/x86/ \
@ -59,7 +59,7 @@ stdenv.mkDerivation rec {
done
cat > $ out/bin/Vessel < < EOW
#!${stdenv.s hell}
#!${runtimeS hell}
cd $ out/libexec/strangeloop/vessel /
exec ./x86/vessel.x86
EOW