nixpkgs/pkgs/applications/misc/johnny-reborn/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
773 B
Nix
Raw Normal View History

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