c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
37 lines
776 B
Nix
37 lines
776 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, SDL2
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "johnny-reborn-engine";
|
|
version = "0.30";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xesf";
|
|
repo = "jc_reborn";
|
|
rev = "v${version}";
|
|
hash = "sha256-n3ELNFvjeDzbamyQIdM9mf/A1sstuhCGzrL9NuXf90Y=";
|
|
};
|
|
|
|
buildInputs = [ SDL2 ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
cp jc_reborn $out/bin/
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "An open-source engine for the classic \"Johnny Castaway\" screensaver (engine only)";
|
|
homepage = "https://github.com/xesf/jc_reborn";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ pedrohlc ];
|
|
mainProgram = "jc_reborn";
|
|
inherit (SDL2.meta) platforms;
|
|
};
|
|
}
|