2023-02-23 14:23:28 +00:00
|
|
|
{ lib
|
|
|
|
, SDL2
|
|
|
|
, SDL2_image
|
|
|
|
, enet
|
|
|
|
, fetchFromGitHub
|
|
|
|
, freetype
|
|
|
|
, glpk
|
|
|
|
, intltool
|
|
|
|
, libpng
|
|
|
|
, libunibreak
|
|
|
|
, libvorbis
|
|
|
|
, libwebp
|
|
|
|
, libxml2
|
|
|
|
, luajit
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, openal
|
|
|
|
, openblas
|
|
|
|
, pcre2
|
|
|
|
, physfs
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, stdenv
|
|
|
|
, suitesparse
|
|
|
|
}:
|
2011-04-27 21:57:27 +00:00
|
|
|
|
2023-02-23 14:23:28 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2012-01-02 17:37:53 +00:00
|
|
|
pname = "naev";
|
2023-02-23 14:23:28 +00:00
|
|
|
version = "0.10.4";
|
2011-04-27 21:57:27 +00:00
|
|
|
|
2023-02-23 14:23:28 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "naev";
|
|
|
|
repo = "naev";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-2cMRmKeoF6x5+95GoDgsoZG9QQo7qATrw/X+335l6FE=";
|
|
|
|
fetchSubmodules = true;
|
2011-04-27 21:57:27 +00:00
|
|
|
};
|
|
|
|
|
2023-02-23 14:23:28 +00:00
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
SDL2_image
|
|
|
|
enet
|
|
|
|
freetype
|
|
|
|
glpk
|
|
|
|
libpng
|
|
|
|
libunibreak
|
|
|
|
libvorbis
|
|
|
|
libwebp
|
|
|
|
libxml2
|
|
|
|
luajit
|
|
|
|
openal
|
|
|
|
openblas
|
|
|
|
pcre2
|
|
|
|
physfs
|
|
|
|
suitesparse
|
|
|
|
];
|
2012-01-02 17:37:53 +00:00
|
|
|
|
2023-02-23 14:23:28 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
(python3.withPackages (ps: with ps; [ pyyaml mutagen ]))
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2023-03-10 22:55:17 +00:00
|
|
|
intltool
|
2023-02-23 14:23:28 +00:00
|
|
|
];
|
2012-01-02 17:37:53 +00:00
|
|
|
|
2023-02-23 14:23:28 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Ddocs_c=disabled"
|
|
|
|
"-Ddocs_lua=disabled"
|
|
|
|
"-Dluajit=enabled"
|
|
|
|
];
|
2011-04-27 21:57:27 +00:00
|
|
|
|
2023-02-23 14:23:28 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs --build dat/outfits/bioship/generate.py utils/build/*.py utils/*.py
|
2011-04-27 21:57:27 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "2D action/rpg space game";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.naev.org";
|
2021-01-15 04:31:39 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2023-03-05 07:50:16 +00:00
|
|
|
maintainers = with lib.maintainers; [ ralismark ];
|
2021-01-15 04:31:39 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2011-04-27 21:57:27 +00:00
|
|
|
};
|
|
|
|
}
|