2018-12-31 04:40:47 +01:00
|
|
|
{ stdenv, fetchurl, zlib, libtiff, libxml2, SDL, xorgproto, libX11
|
2019-11-10 17:44:34 +01:00
|
|
|
, libXi, libXmu, libXext, libGLU, libGL }:
|
2010-11-28 14:16:47 +01:00
|
|
|
|
2015-12-29 15:16:12 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "stardust";
|
2015-12-29 15:16:12 +01:00
|
|
|
version = "0.1.13";
|
2010-11-28 14:16:47 +01:00
|
|
|
|
2015-12-29 15:16:12 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "http://iwar.free.fr/IMG/gz/${pname}-${version}.tar.gz";
|
2015-12-29 15:16:12 +01:00
|
|
|
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
|
2019-11-10 17:44:34 +01:00
|
|
|
libXmu libXext libGLU libGL
|
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
|
|
|
}
|