mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
38 lines
773 B
Nix
38 lines
773 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, SDL2
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "johnny-reborn-engine";
|
|
version = "0.45";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xesf";
|
|
repo = "jc_reborn";
|
|
rev = "v${version}";
|
|
hash = "sha256-PDh2RKdvm4LkDKi963CB5RiraWcS3FED6ug8T1J65GM=";
|
|
};
|
|
|
|
buildInputs = [ SDL2 ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
cp jc_reborn $out/bin/
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Open-source engine for the classic \"Johnny Castaway\" screensaver (engine only)";
|
|
homepage = "https://github.com/xesf/jc_reborn";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ pedrohlc ];
|
|
mainProgram = "jc_reborn";
|
|
inherit (SDL2.meta) platforms;
|
|
};
|
|
}
|