forked from mirrors/nixpkgs
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>
This commit is contained in:
parent
69e3e6d07c
commit
3314db5a56
52
pkgs/games/cdogs-sdl/default.nix
Normal file
52
pkgs/games/cdogs-sdl/default.nix
Normal file
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -27313,6 +27313,8 @@ in
|
|||
|
||||
cbonsai = callPackage ../games/cbonsai { };
|
||||
|
||||
cdogs-sdl = callPackage ../games/cdogs-sdl { };
|
||||
|
||||
chessdb = callPackage ../games/chessdb { };
|
||||
|
||||
chessx = libsForQt5.callPackage ../games/chessx { };
|
||||
|
|
Loading…
Reference in a new issue