nixpkgs-suyu/pkgs/games/naev/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.1 KiB
Nix
Raw Normal View History

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