2024-07-26 00:31:57 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gitUpdater,
|
|
|
|
autoreconfHook,
|
|
|
|
allegro,
|
|
|
|
libsamplerate,
|
|
|
|
libX11,
|
|
|
|
libXext,
|
|
|
|
SDL,
|
|
|
|
SDL_mixer,
|
|
|
|
SDL2,
|
|
|
|
SDL2_mixer,
|
|
|
|
readline,
|
|
|
|
}:
|
2020-11-19 16:25:47 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "1oom";
|
2024-07-26 00:31:33 +00:00
|
|
|
version = "1.10.1";
|
2020-11-19 16:25:47 +00:00
|
|
|
|
2024-04-25 21:16:58 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "1oom-fork";
|
|
|
|
repo = "1oom";
|
2024-07-26 00:31:33 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-M8UpdIOOMUMNY0e+Cxx/uoLBWKc2x7cv2d4VyLwcMng=";
|
2020-11-19 16:25:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2024-07-26 00:31:57 +00:00
|
|
|
buildInputs = [
|
|
|
|
allegro
|
|
|
|
libsamplerate
|
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
SDL
|
|
|
|
SDL_mixer
|
|
|
|
SDL2
|
|
|
|
SDL2_mixer
|
|
|
|
readline
|
|
|
|
];
|
2020-11-19 16:25:47 +00:00
|
|
|
|
2024-07-26 00:31:57 +00:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"doc"
|
|
|
|
];
|
2020-11-19 16:25:47 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -d $doc/share/doc/${pname}
|
|
|
|
install -t $doc/share/doc/${pname} \
|
2024-04-25 21:16:58 +00:00
|
|
|
HACKING NEWS PHILOSOPHY README.md doc/*.txt
|
2020-11-19 16:25:47 +00:00
|
|
|
'';
|
|
|
|
|
2024-07-26 00:31:57 +00:00
|
|
|
passthru.updateScript = gitUpdater { rev-prefix = "f"; };
|
2024-04-25 21:20:07 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2024-04-26 05:29:00 +00:00
|
|
|
homepage = "https://github.com/1oom-fork/1oom";
|
|
|
|
description = "Master of Orion (1993) game engine recreation; a more updated fork";
|
2020-11-19 16:25:47 +00:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
};
|
|
|
|
}
|