diff options
author | nixinator <66913205+nixinator@users.noreply.github.com> | 2021-04-10 16:23:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-10 17:23:57 +0200 |
commit | 3314db5a56144637ddb45480d52cc05e3b72f390 (patch) | |
tree | 1f081dd4a96693588fa5748fe325dc826e3984d9 /pkgs/games/cdogs-sdl | |
parent | 69e3e6d07c1992e9b7c70200536c3bb67cac6e53 (diff) |
cdogs-sdl: init at 0.11.0 (#118949)
Co-authored-by: Jonathan Ringer <jonringer@users.noreply.github.com> Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/games/cdogs-sdl')
-rw-r--r-- | pkgs/games/cdogs-sdl/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/games/cdogs-sdl/default.nix b/pkgs/games/cdogs-sdl/default.nix new file mode 100644 index 0000000000000..1c35e1e86e707 --- /dev/null +++ b/pkgs/games/cdogs-sdl/default.nix @@ -0,0 +1,52 @@ +{ lib +, stdenv +, fetchFromGitHub +, pkg-config +, SDL2 +, SDL2_image +, SDL2_mixer +, cmake +, gtk3-x11 +, python3 +, protobuf +}: + +stdenv.mkDerivation rec { + pname = "cdogs"; + version = "0.11.0"; + + src = fetchFromGitHub { + repo = "cdogs-sdl"; + owner = "cxong"; + rev = version; + sha256 = "sha256-zWwlcEM2KsYiB48cmRTjou0C86SqeoOLrbacCR0SfIA="; + }; + + postPatch = '' + patchShebangs src/proto/nanopb/generator/* + ''; + + cmakeFlags = [ "-DCDOGS_DATA_DIR=${placeholder "out"}/" ]; + + nativeBuildInputs = [ + pkg-config + cmake + (python3.withPackages (pp: with pp; [ pp.protobuf setuptools ])) + ]; + + buildInputs = [ + SDL2 + SDL2_image + SDL2_mixer + gtk3-x11 + protobuf + ]; + + meta = with lib; { + homepage = "https://cxong.github.io/cdogs-sdl"; + description = "Open source classic overhead run-and-gun game"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ nixinator ]; + platforms = platforms.unix; + }; +} |