2021-12-19 01:06:50 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2023-03-15 16:39:30 +00:00
|
|
|
, SDL2, libpng, libjpeg, glew, openal, scons, libmad, libuuid
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "endless-sky";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.9.16.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "endless-sky";
|
|
|
|
repo = "endless-sky";
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
sha256 = "sha256-bohljxAtSVqsfnge6t4LF3pC1s1r99v3hNLKTBquC20=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
patches = [
|
|
|
|
./fixes.patch
|
|
|
|
];
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
preBuild = ''
|
|
|
|
export AR="${stdenv.cc.targetPrefix}gcc-ar"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
buildInputs = [
|
2023-03-15 16:39:30 +00:00
|
|
|
SDL2 libpng libjpeg glew openal scons libmad libuuid
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
prefixKey = "PREFIX=";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A sandbox-style space exploration game similar to Elite, Escape Velocity, or Star Control";
|
|
|
|
homepage = "https://endless-sky.github.io/";
|
|
|
|
license = with licenses; [
|
|
|
|
gpl3Plus cc-by-sa-30 cc-by-sa-40 publicDomain
|
|
|
|
];
|
|
|
|
maintainers = with maintainers; [ lheckemann ];
|
|
|
|
platforms = platforms.linux; # Maybe other non-darwin Unix
|
|
|
|
};
|
|
|
|
}
|