Merge pull request #306860 from jopejoe1/1oom/update/1.8.1

_1oom: 1.0 -> 1.8.1, added update script
This commit is contained in:
Weijia Wang 2024-04-27 06:02:56 +02:00 committed by GitHub
commit 525a49fe23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 15 additions and 11 deletions

View File

@ -1,30 +1,34 @@
{ lib, stdenv, fetchFromGitLab, autoreconfHook, libsamplerate, SDL2, SDL2_mixer, readline }:
{ lib, stdenv, fetchFromGitHub, gitUpdater, autoreconfHook, allegro, libsamplerate, libX11, libXext, SDL, SDL_mixer, SDL2, SDL2_mixer, readline }:
stdenv.mkDerivation rec {
pname = "1oom";
version = "1.0";
version = "1.8.1";
src = fetchFromGitLab {
owner = "KilgoreTroutMaskReplicant";
repo = pname;
rev = "v${version}";
sha256 = "sha256-+HwSykSyAGHtITVOu4nIG87kWwVxGyFXb/NRSjhWlvs=";
src = fetchFromGitHub {
owner = "1oom-fork";
repo = "1oom";
rev = "refs/tags/f${version}";
hash = "sha256-sBVcPR4+MDjyOLgrB4VcVy0cDyyG5MVY9vNhWwqAhBA=";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ libsamplerate SDL2 SDL2_mixer readline ];
buildInputs = [ allegro libsamplerate libX11 libXext SDL SDL_mixer SDL2 SDL2_mixer readline ];
outputs = [ "out" "doc" ];
postInstall = ''
install -d $doc/share/doc/${pname}
install -t $doc/share/doc/${pname} \
HACKING NEWS PHILOSOPHY README doc/*.txt
HACKING NEWS PHILOSOPHY README.md doc/*.txt
'';
passthru.updateScript = gitUpdater {
rev-prefix = "f";
};
meta = with lib; {
homepage = "https://kilgoretroutmaskreplicant.gitlab.io/plain-html/";
description = "Master of Orion (1993) game engine recreation";
homepage = "https://github.com/1oom-fork/1oom";
description = "Master of Orion (1993) game engine recreation; a more updated fork";
license = licenses.gpl2Only;
platforms = platforms.linux;
maintainers = [ maintainers.AndersonTorres ];