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
69 lines
1.2 KiB
Nix
69 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
zlib,
|
|
libtiff,
|
|
libxml2,
|
|
SDL_compat,
|
|
libX11,
|
|
libXi,
|
|
libXmu,
|
|
libXext,
|
|
libGLU,
|
|
libGL,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "stardust";
|
|
version = "0.1.13";
|
|
|
|
src = fetchurl {
|
|
url = "http://iwar.free.fr/spip/IMG/gz/stardust-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-t5cykB5zHYYj4tlk9QDhL7YQVgEScBZw9OIVXz5NOqc=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = [
|
|
SDL_compat
|
|
libxml2
|
|
];
|
|
buildInputs = [
|
|
zlib
|
|
libtiff
|
|
libxml2
|
|
SDL_compat
|
|
libX11
|
|
libXi
|
|
libXmu
|
|
libXext
|
|
libGLU
|
|
libGL
|
|
];
|
|
|
|
patches = [ ./pointer-fix.patch ];
|
|
|
|
installFlags = [ "bindir=${placeholder "out"}/bin" ];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
postConfigure = ''
|
|
substituteInPlace config.h \
|
|
--replace-fail '#define PACKAGE ""' '#define PACKAGE "stardust"'
|
|
'';
|
|
|
|
meta = {
|
|
description = "Space flight simulator";
|
|
homepage = "http://iwar.free.fr/spip/rubrique2.html";
|
|
mainProgram = "stardust";
|
|
maintainers = with lib.maintainers; [
|
|
raskin
|
|
marcin-serwin
|
|
];
|
|
platforms = lib.platforms.linux;
|
|
license = lib.licenses.gpl2Plus;
|
|
};
|
|
})
|