diff --git a/pkgs/applications/misc/johnny-reborn/default.nix b/pkgs/applications/misc/johnny-reborn/default.nix index 5a512b0466e7..180d46519c64 100644 --- a/pkgs/applications/misc/johnny-reborn/default.nix +++ b/pkgs/applications/misc/johnny-reborn/default.nix @@ -4,35 +4,34 @@ , SDL2 }: -stdenv.mkDerivation { +stdenv.mkDerivation rec { pname = "johnny-reborn-engine"; - version = "unstable-2020-12-06"; + version = "0.30"; src = fetchFromGitHub { - owner = "jno6809"; + owner = "xesf"; repo = "jc_reborn"; - rev = "524a5803e4fa65f840379c781f40ce39a927032e"; - hash = "sha256-YKAOCgdRnvNMzL6LJVXN0pLvjyJk4Zv/RCqGtDPFR90="; + rev = "v${version}"; + hash = "sha256-n3ELNFvjeDzbamyQIdM9mf/A1sstuhCGzrL9NuXf90Y="; }; - makefile = "Makefile.linux"; - buildInputs = [ SDL2 ]; installPhase = '' runHook preInstall - mkdir -p $out - cp jc_reborn $out/ + 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/jno6809/jc_reborn"; + homepage = "https://github.com/xesf/jc_reborn"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ pedrohlc ]; + mainProgram = "jc_reborn"; inherit (SDL2.meta) platforms; }; } diff --git a/pkgs/applications/misc/johnny-reborn/with-data.nix b/pkgs/applications/misc/johnny-reborn/with-data.nix index 04300524665e..b9432c543fee 100644 --- a/pkgs/applications/misc/johnny-reborn/with-data.nix +++ b/pkgs/applications/misc/johnny-reborn/with-data.nix @@ -6,7 +6,6 @@ , makeWrapper }: - let sounds = fetchFromGitHub { owner = "nivs1978"; @@ -39,15 +38,15 @@ stdenvNoCC.mkDerivation { installPhase = '' runHook preInstall - mkdir -p $out - cp -t $out/ \ + mkdir -p $out/share/jc_reborn/data + cp -t $out/share/jc_reborn/data/ \ ../scrantic-source/RESOURCE.* \ JCOS/Resources/sound*.wav makeWrapper \ - ${johnny-reborn-engine}/jc_reborn \ - $out/jc_reborn \ - --chdir $out + ${johnny-reborn-engine}/bin/jc_reborn \ + $out/bin/jc_reborn \ + --chdir $out/share/jc_reborn runHook postInstall ''; @@ -56,6 +55,6 @@ stdenvNoCC.mkDerivation { description = "An open-source engine for the classic \"Johnny Castaway\" screensaver (ready to use, with resources)"; license = lib.licenses.unfree; maintainers = with lib.maintainers; [ pedrohlc ]; - inherit (johnny-reborn-engine.meta) homepage platforms; + inherit (johnny-reborn-engine.meta) homepage platforms mainProgram; }; }