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