nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 38 lines 779 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 SDL2, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "johnny-reborn-engine"; 10 version = "0.45"; 11 12 src = fetchFromGitHub { 13 owner = "xesf"; 14 repo = "jc_reborn"; 15 rev = "v${version}"; 16 hash = "sha256-PDh2RKdvm4LkDKi963CB5RiraWcS3FED6ug8T1J65GM="; 17 }; 18 19 buildInputs = [ SDL2 ]; 20 21 installPhase = '' 22 runHook preInstall 23 24 mkdir -p $out/bin 25 cp jc_reborn $out/bin/ 26 27 runHook postInstall 28 ''; 29 30 meta = { 31 description = "Open-source engine for the classic \"Johnny Castaway\" screensaver (engine only)"; 32 homepage = "https://github.com/xesf/jc_reborn"; 33 license = lib.licenses.gpl3Plus; 34 maintainers = with lib.maintainers; [ pedrohlc ]; 35 mainProgram = "jc_reborn"; 36 inherit (SDL2.meta) platforms; 37 }; 38}