{ stdenv, lib, fetchHumbleBundle, unzip, pkgsi686Linux, expect, makeWrapper , SDL, openal }: let version = "1.0.2"; usVersion = lib.replaceChars ["."] ["_"] version; in stdenv.mkDerivation rec { name = "jamestown-${version}"; src = fetchHumbleBundle { machineName = "jamestown_linux"; downloadName = ".zip"; suffix = "zip"; md5 = "dcfb4348aba89f0f26bf5b4c7e05d936"; }; buildInputs = [ makeWrapper ]; unpackPhase = '' ${unzip}/bin/unzip -q "$src" patchelf --set-interpreter "${pkgsi686Linux.glibc}"/lib/ld-linux.so.* \ "JamestownInstaller_${usVersion}-bin" ${expect}/bin/expect <