Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / johnny-reborn / default.nix
blob5a512b0466e76787ebcc9ac9625e7821811457ac
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , SDL2
5 }:
7 stdenv.mkDerivation {
8   pname = "johnny-reborn-engine";
9   version = "unstable-2020-12-06";
11   src = fetchFromGitHub {
12     owner = "jno6809";
13     repo = "jc_reborn";
14     rev = "524a5803e4fa65f840379c781f40ce39a927032e";
15     hash = "sha256-YKAOCgdRnvNMzL6LJVXN0pLvjyJk4Zv/RCqGtDPFR90=";
16   };
18   makefile = "Makefile.linux";
20   buildInputs = [ SDL2 ];
22   installPhase = ''
23     runHook preInstall
25     mkdir -p $out
26     cp jc_reborn $out/
28     runHook postInstall
29   '';
31   meta = {
32     description = "An open-source engine for the classic \"Johnny Castaway\" screensaver (engine only)";
33     homepage = "https://github.com/jno6809/jc_reborn";
34     license = lib.licenses.gpl3Plus;
35     maintainers = with lib.maintainers; [ pedrohlc ];
36     inherit (SDL2.meta) platforms;
37   };