diff options
author | Jacob Moody <moody@posixcafe.org> | 2023-07-26 21:25:51 -0500 |
---|---|---|
committer | Jacob Moody <moody@posixcafe.org> | 2023-07-27 00:04:23 -0500 |
commit | cd68dbf4c1a0f9308a46a6ceb6de43423547fdac (patch) | |
tree | 8aa107e81afae00cd345d7330c146dfacbb63c4e /pkgs/games | |
parent | d287443e67681c7aefb09d0c59eb32b906ab6c92 (diff) |
jfsw: init at stable-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; + }; +}) |