2021-01-17 02:04:36 +00:00
|
|
|
{ lib, fetchurl, stdenv, SDL, openal, SDL_mixer, libxml2, pkg-config, libvorbis
|
2019-11-10 16:44:34 +00:00
|
|
|
, libpng, libGLU, libGL, makeWrapper, zlib, freetype }:
|
2011-04-27 22:57:27 +01:00
|
|
|
|
2012-01-02 17:37:53 +00:00
|
|
|
let
|
|
|
|
pname = "naev";
|
|
|
|
version = "0.5.0";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
in
|
2011-04-27 22:57:27 +01:00
|
|
|
stdenv.mkDerivation {
|
2012-01-02 17:37:53 +00:00
|
|
|
inherit name;
|
2011-04-27 22:57:27 +01:00
|
|
|
|
|
|
|
srcData = fetchurl {
|
2012-01-02 17:37:53 +00:00
|
|
|
url = "mirror://sourceforge/naev/ndata-${version}";
|
|
|
|
sha256 = "0l05xxbbys3j5h6anvann2vylhp6hnxnzwpcaydaff8fpbbyi6r6";
|
2011-04-27 22:57:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
2012-01-02 17:37:53 +00:00
|
|
|
url = "mirror://sourceforge/naev/${name}.tar.bz2";
|
|
|
|
sha256 = "0gahi91lmpra0wvxsz49zwwb28q9w2v1s3y7r70252hq6v80kanb";
|
2011-04-27 22:57:27 +01:00
|
|
|
};
|
|
|
|
|
2019-11-10 16:44:34 +00:00
|
|
|
buildInputs = [ SDL SDL_mixer openal libxml2 libvorbis libpng libGLU libGL zlib freetype ];
|
2012-01-02 17:37:53 +00:00
|
|
|
|
2021-01-17 02:04:36 +00:00
|
|
|
nativeBuildInputs = [ pkg-config makeWrapper ];
|
2012-01-02 17:37:53 +00:00
|
|
|
|
2016-04-16 18:50:01 +01:00
|
|
|
NIX_CFLAGS_COMPILE="-include ${zlib.dev}/include/zlib.h";
|
2011-04-27 22:57:27 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/naev
|
2012-01-02 17:37:53 +00:00
|
|
|
cp -v $srcData $out/share/naev/ndata
|
2011-04-27 22:57:27 +01:00
|
|
|
wrapProgram $out/bin/naev --add-flags $out/share/naev/ndata
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "2D action/rpg space game";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.naev.org";
|
2021-01-15 04:31:39 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [viric];
|
|
|
|
platforms = lib.platforms.linux;
|
2013-11-04 23:04:36 +00:00
|
|
|
hydraPlatforms = [];
|
2011-04-27 22:57:27 +01:00
|
|
|
};
|
|
|
|
}
|