2015-12-29 15:16:12 +01:00
|
|
|
{ stdenv, fetchurl, zlib, libtiff, libxml2, SDL, xproto, libX11
|
|
|
|
, libXi, inputproto, libXmu, libXext, xextproto, mesa }:
|
2010-11-28 14:16:47 +01:00
|
|
|
|
2015-12-29 15:16:12 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "stardust-${version}";
|
|
|
|
version = "0.1.13";
|
2010-11-28 14:16:47 +01:00
|
|
|
|
2015-12-29 15:16:12 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://iwar.free.fr/IMG/gz/${name}.tar.gz";
|
|
|
|
sha256 = "19rs9lz5y5g2yiq1cw0j05b11digw40gar6rw8iqc7bk3s8355xp";
|
|
|
|
};
|
2010-11-28 14:16:47 +01:00
|
|
|
|
2015-12-29 15:16:12 +01:00
|
|
|
buildInputs = [
|
|
|
|
zlib libtiff libxml2 SDL xproto libX11 libXi inputproto
|
|
|
|
libXmu libXext xextproto mesa
|
2010-11-28 14:16:47 +01:00
|
|
|
];
|
|
|
|
|
2015-12-29 15:16:12 +01:00
|
|
|
installFlags = [ "bindir=\${out}/bin" ];
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
substituteInPlace config.h \
|
|
|
|
--replace '#define PACKAGE ""' '#define PACKAGE "stardust"'
|
|
|
|
'';
|
2010-11-28 14:16:47 +01:00
|
|
|
|
2015-12-29 15:16:12 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-11-28 14:16:47 +01:00
|
|
|
description = "Space flight simulator";
|
2015-12-29 15:16:12 +01:00
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2Plus;
|
2010-11-28 14:16:47 +01:00
|
|
|
};
|
2015-12-29 15:16:12 +01:00
|
|
|
}
|