11 sounds = fetchFromGitHub {
13 repo = "Johnny-Castaway-Open-Source";
14 rev = "be6afefd43a3334acc66fc9d777c162c8bfb9558";
15 hash = "sha256-rtZVCn4KbEBVwaSQ4HZhMoDEI5Q9IPj9SZywgAx0MPY=";
18 resources = fetchzip {
19 name = "scrantic-source";
20 url = "https://archive.org/download/johnny-castaway-screensaver/scrantic-run.zip";
21 hash = "sha256-Q9chCYReOQEmkTyIkYo+D+OXYUqxPNOOEEmiFh8yaw4=";
26 stdenvNoCC.mkDerivation {
27 pname = "johnny-reborn";
28 inherit (johnny-reborn-engine) version;
35 nativeBuildInputs = [ makeWrapper ];
37 sourceRoot = sounds.name;
45 mkdir -p $out/share/jc_reborn/data
46 cp -t $out/share/jc_reborn/data/ \
47 ../scrantic-source/RESOURCE.* \
48 JCOS/Resources/sound*.wav
51 ${johnny-reborn-engine}/bin/jc_reborn \
53 --chdir $out/share/jc_reborn
59 description = "Open-source engine for the classic \"Johnny Castaway\" screensaver (ready to use, with resources)";
60 license = lib.licenses.unfree;
61 maintainers = with lib.maintainers; [ pedrohlc ];
62 inherit (johnny-reborn-engine.meta) homepage platforms mainProgram;