2018-12-31 04:40:47 +01:00
|
|
|
{ stdenv, fetchurl, zlib, libtiff, libxml2, SDL, xorgproto, libX11
|
|
|
|
, libXi, libXmu, libXext, libGLU_combined }:
|
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 = [
|
2018-12-31 04:40:47 +01:00
|
|
|
zlib libtiff libxml2 SDL xorgproto libX11 libXi
|
|
|
|
libXmu libXext libGLU_combined
|
2010-11-28 14:16:47 +01:00
|
|
|
];
|
|
|
|
|
2015-12-29 15:16:12 +01:00
|
|
|
installFlags = [ "bindir=\${out}/bin" ];
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-24 18:13:08 +01:00
|
|
|
|
2015-12-29 15:16:12 +01:00
|
|
|
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
|
|
|
}
|