10 sounds = fetchFromGitHub {
12 repo = "Johnny-Castaway-Open-Source";
13 rev = "be6afefd43a3334acc66fc9d777c162c8bfb9558";
14 hash = "sha256-rtZVCn4KbEBVwaSQ4HZhMoDEI5Q9IPj9SZywgAx0MPY=";
17 resources = fetchzip {
18 name = "scrantic-source";
19 url = "https://archive.org/download/johnny-castaway-screensaver/scrantic-run.zip";
20 hash = "sha256-Q9chCYReOQEmkTyIkYo+D+OXYUqxPNOOEEmiFh8yaw4=";
25 stdenvNoCC.mkDerivation {
26 pname = "johnny-reborn";
27 inherit (johnny-reborn-engine) version;
29 srcs = [ sounds resources ];
31 nativeBuildInputs = [ makeWrapper ];
33 sourceRoot = sounds.name;
41 mkdir -p $out/share/jc_reborn/data
42 cp -t $out/share/jc_reborn/data/ \
43 ../scrantic-source/RESOURCE.* \
44 JCOS/Resources/sound*.wav
47 ${johnny-reborn-engine}/bin/jc_reborn \
49 --chdir $out/share/jc_reborn
55 description = "Open-source engine for the classic \"Johnny Castaway\" screensaver (ready to use, with resources)";
56 license = lib.licenses.unfree;
57 maintainers = with lib.maintainers; [ pedrohlc ];
58 inherit (johnny-reborn-engine.meta) homepage platforms mainProgram;