2012-01-02 21:37:53 +04:00
|
|
|
{ fetchurl, stdenv, SDL, openal, SDL_mixer, libxml2, pkgconfig, libvorbis
|
|
|
|
, libpng, mesa, makeWrapper, zlib }:
|
2011-04-28 01:57:27 +04:00
|
|
|
|
2012-01-02 21:37:53 +04:00
|
|
|
let
|
|
|
|
pname = "naev";
|
|
|
|
version = "0.5.0";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
in
|
2011-04-28 01:57:27 +04:00
|
|
|
stdenv.mkDerivation {
|
2012-01-02 21:37:53 +04:00
|
|
|
inherit name;
|
2011-04-28 01:57:27 +04:00
|
|
|
|
|
|
|
srcData = fetchurl {
|
2012-01-02 21:37:53 +04:00
|
|
|
url = "mirror://sourceforge/naev/ndata-${version}";
|
|
|
|
sha256 = "0l05xxbbys3j5h6anvann2vylhp6hnxnzwpcaydaff8fpbbyi6r6";
|
2011-04-28 01:57:27 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
2012-01-02 21:37:53 +04:00
|
|
|
url = "mirror://sourceforge/naev/${name}.tar.bz2";
|
|
|
|
sha256 = "0gahi91lmpra0wvxsz49zwwb28q9w2v1s3y7r70252hq6v80kanb";
|
2011-04-28 01:57:27 +04:00
|
|
|
};
|
|
|
|
|
2012-01-02 21:37:53 +04:00
|
|
|
buildInputs = [ SDL SDL_mixer openal libxml2 libvorbis libpng mesa zlib ];
|
|
|
|
|
2012-12-28 22:20:09 +04:00
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
2012-01-02 21:37:53 +04:00
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE="-include ${zlib}/include/zlib.h";
|
2011-04-28 01:57:27 +04:00
|
|
|
|
|
|
|
postInstall = ''
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p $out/share/naev
|
2012-01-02 21:37:53 +04:00
|
|
|
cp -v $srcData $out/share/naev/ndata
|
2011-04-28 01:57:27 +04:00
|
|
|
wrapProgram $out/bin/naev --add-flags $out/share/naev/ndata
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "2D action/rpg space game";
|
|
|
|
homepage = http://www.naev.org;
|
2014-06-19 08:19:00 +04:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2011-04-28 01:57:27 +04:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2013-11-05 03:04:36 +04:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
hydraPlatforms = [];
|
2011-04-28 01:57:27 +04:00
|
|
|
};
|
|
|
|
}
|