2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, SDL2
|
|
|
|
}:
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2023-07-15 17:15:38 +00:00
|
|
|
pname = "johnny-reborn-engine";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.45";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-02-29 20:09:43 +00:00
|
|
|
owner = "xesf";
|
2023-07-15 17:15:38 +00:00
|
|
|
repo = "jc_reborn";
|
2024-02-29 20:09:43 +00:00
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-PDh2RKdvm4LkDKi963CB5RiraWcS3FED6ug8T1J65GM=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ SDL2 ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
cp jc_reborn $out/bin/
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An open-source engine for the classic \"Johnny Castaway\" screensaver (engine only)";
|
2024-02-29 20:09:43 +00:00
|
|
|
homepage = "https://github.com/xesf/jc_reborn";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ pedrohlc ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "jc_reborn";
|
2023-07-15 17:15:38 +00:00
|
|
|
inherit (SDL2.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|