2023-03-08 16:32:21 +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
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "naev";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.11.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "naev";
|
|
|
|
repo = "naev";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-JTXZzxjfnD3OKZq1wms9bPwIBXyu9FuZB6hvH7HwvRI=";
|
2023-03-08 16:32:21 +00:00
|
|
|
fetchSubmodules = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
SDL2_image
|
|
|
|
enet
|
|
|
|
freetype
|
|
|
|
glpk
|
|
|
|
libpng
|
|
|
|
libunibreak
|
|
|
|
libvorbis
|
|
|
|
libwebp
|
|
|
|
libxml2
|
|
|
|
luajit
|
|
|
|
openal
|
|
|
|
openblas
|
|
|
|
pcre2
|
|
|
|
physfs
|
|
|
|
suitesparse
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
(python3.withPackages (ps: with ps; [ pyyaml mutagen ]))
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2023-03-15 16:39:30 +00:00
|
|
|
intltool
|
2023-03-08 16:32:21 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Ddocs_c=disabled"
|
|
|
|
"-Ddocs_lua=disabled"
|
|
|
|
"-Dluajit=enabled"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs --build dat/outfits/bioship/generate.py utils/build/*.py utils/*.py
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "2D action/rpg space game";
|
|
|
|
homepage = "http://www.naev.org";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2023-03-08 16:32:21 +00:00
|
|
|
maintainers = with lib.maintainers; [ ralismark ];
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|