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