11 stdenv.mkDerivation rec {
16 We cannot download the full version automatically, as you require a license.
17 Once you bought a license, you need to add your downloaded version to the nix store.
18 You can do this by using "nix-prefetch-url file://\$PWD/vessel-${version}-bin" in the
19 directory where you saved it.
23 if (stdenv.hostPlatform.isi686) then
26 name = "vessel-${version}-bin";
27 sha256 = "1vpwcrjiln2mx43h7ib3jnccyr3chk7a5x2bw9kb4lw8ycygvg96";
30 throw "unsupported platform ${stdenv.hostPlatform.system} only i686-linux supported for now.";
32 phases = "installPhase";
33 ld_preload = ./isatty.c;
41 + lib.makeLibraryPath [
48 mkdir -p $out/libexec/strangeloop/vessel/
51 # allow scripting of the mojoinstaller
52 gcc -fPIC -shared -o isatty.so $ld_preload
55 echo @@@ this next step appears to hang for a while
58 # if we call ld.so $(bin) we don't need to set the ELF interpreter, and save a patchelf step.
59 LD_PRELOAD=./isatty.so $(cat $NIX_CC/nix-support/dynamic-linker) $src << IM_A_BOT
61 $out/libexec/strangeloop/vessel/
64 # use nix SDL libraries
65 rm $out/libexec/strangeloop/vessel/x86/libSDL*
66 rm $out/libexec/strangeloop/vessel/x86/libstdc++*
68 # props to Ethan Lee (the Vessel porter) for understanding
69 # how $ORIGIN works in rpath. There is hope for humanity.
71 --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
72 --set-rpath $libPath:$out/libexec/strangeloop/vessel/x86/ \
73 $out/libexec/strangeloop/vessel/x86/vessel.x86
75 # we need to libs to find their deps
76 for lib in $out/libexec/strangeloop/vessel/x86/lib* ; do
78 --set-rpath $libPath:$out/libexec/strangeloop/vessel/x86/ \
82 cat > $out/bin/Vessel << EOW
84 cd $out/libexec/strangeloop/vessel/
88 chmod +x $out/bin/Vessel
92 description = "Fluid physics based puzzle game";
94 Living liquid machines have overrun this world of unstoppable progress,
95 and it is the role of their inventor, Arkwright, to stop the chaos they are
96 causing. Vessel is a game about a man with the power to bring ordinary matter
97 to life, and all the consequences that ensue.
99 homepage = "http://www.strangeloopgames.com";
100 license = licenses.unfree;
101 maintainers = with maintainers; [ jcumming ];