Files
nixpkgs/pkgs/by-name/en/endless-sky/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

76 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
SDL2,
libpng,
libjpeg,
libX11,
glew,
openal,
scons,
libmad,
libuuid,
}:
stdenv.mkDerivation rec {
pname = "endless-sky";
version = "0.10.12";
src = fetchFromGitHub {
owner = "endless-sky";
repo = "endless-sky";
tag = "v${version}";
hash = "sha256-cT/bklRGQnS9Nm8J0oH1mG20JQOe58FAAHToNDpvPpQ=";
};
patches = [
./fixes.patch
];
postPatch = ''
# the trailing slash is important!!
# endless sky naively joins the paths with string concatenation
# so it's essential that there be a trailing slash on the resources path
substituteInPlace source/Files.cpp \
--replace '%NIXPKGS_RESOURCES_PATH%' "$out/share/games/endless-sky/"
'';
preBuild = ''
export AR="${stdenv.cc.targetPrefix}gcc-ar"
'';
enableParallelBuilding = true;
nativeBuildInputs = [
scons
];
buildInputs = [
SDL2
libpng
libjpeg
libX11
glew
openal
libmad
libuuid
];
prefixKey = "PREFIX=";
meta = with lib; {
description = "Sandbox-style space exploration game similar to Elite, Escape Velocity, or Star Control";
mainProgram = "endless-sky";
homepage = "https://endless-sky.github.io/";
license = with licenses; [
gpl3Plus
cc-by-sa-30
cc-by-sa-40
publicDomain
];
maintainers = with maintainers; [ _360ied ];
platforms = platforms.linux; # Maybe other non-darwin Unix
};
}