1 { lib, stdenv, fetchurl
2 , libGLU, libGL, libXi, libXt, libXext, libX11, libXmu, libglut
5 stdenv.mkDerivation rec {
10 buildInputs = [ libGLU libGL libXi libXt libXext libX11 libXmu libglut ];
13 url = "mirror://debian/pool/main/s/space-orbit/space-orbit_${version}.orig.tar.gz";
14 sha256 = "1kx69f9jqnfzwjh47cl1df8p8hn3bnp6bznxnb6c4wx32ijn5gri";
19 url = "mirror://debian/pool/main/s/space-orbit/space-orbit_${version}-${patchversion}.diff.gz";
20 sha256 = "1v3s97day6fhv08l2rn81waiprhi1lfyjjsj55axfh6n6zqfn1w2";
26 sed -e 's@/usr/share/games/orbit/@'$out'/dump/@g' -i *.c
27 sed -e '/DIR=/d; s/-lesd//; s/-DESD//;' -i Makefile
33 cat >$out/bin/space-orbit <<EOF
35 exec $out/dump/orbit "\$@"
37 chmod a+x $out/bin/space-orbit
41 broken = stdenv.hostPlatform.isDarwin;
42 description = "Space combat simulator";
43 mainProgram = "space-orbit";
44 license = licenses.gpl2Plus;
45 platforms = platforms.all;