diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2023-07-29 14:03:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-29 14:03:50 +0200 |
commit | 81f9ddb449bbfb6b80f171d5d10489268db9ef73 (patch) | |
tree | 3e3a6f431258343309645485ae9c6cc2f03a35a3 /pkgs/games | |
parent | d2b52322f35597c62abf56de91b0236746b2a03d (diff) | |
parent | cd68dbf4c1a0f9308a46a6ceb6de43423547fdac (diff) |
Merge pull request #245647 from majiru/jfsw
jfsw: init at 20211225
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/jfsw/default.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/games/jfsw/default.nix b/pkgs/games/jfsw/default.nix new file mode 100644 index 0000000000000..e170f0024531b --- /dev/null +++ b/pkgs/games/jfsw/default.nix @@ -0,0 +1,57 @@ +{ lib +, stdenv +, fetchFromGitHub +, which +, SDL2 +, perl +, pkg-config +, wrapGAppsHook +, gtk3 +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "jfsw"; + version = "20211225"; + + src = fetchFromGitHub { + owner = "jonof"; + repo = "jfsw"; + rev = "refs/tags/${finalAttrs.version}"; + fetchSubmodules = true; + hash = "sha256-oRJHVsVo+KQfJyd8TcPxTMPPi993qxQb0wnD9nR4vJY="; + }; + + nativeBuildInputs = [ + which + SDL2 + perl + pkg-config + wrapGAppsHook + ]; + + buildInputs = [ + SDL2 + gtk3 + ]; + + strictDeps = true; + enableParallelBuilding = true; + + installPhase = '' + runHook preInstall + + install -Dm755 sw -t $out/bin + + runHook postInstall + ''; + + meta = { + description = "Modern port the original Shadow Warrior"; + homepage = "http://www.jonof.id.au/jfsw/"; + license = lib.licenses.gpl2Plus; + mainProgram = "sw"; + maintainers = with lib.maintainers; [ moody ]; + broken = stdenv.isDarwin; + inherit (SDL2.meta) platforms; + }; +}) |