nixpkgs/pkgs/games/augustus/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

27 lines
755 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, SDL2, SDL2_mixer, libpng }:
stdenv.mkDerivation rec {
pname = "augustus";
version = "4.0.0";
src = fetchFromGitHub {
owner = "Keriew";
repo = "augustus";
rev = "v${version}";
sha256 = "sha256-UWJmxirRJJqvL4ZSjBvFepeKVvL77+WMp4YdZuFNEkg=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ SDL2 SDL2_mixer libpng ];
meta = with lib; {
description = "An open source re-implementation of Caesar III. Fork of Julius incorporating gameplay changes";
mainProgram = "augustus";
homepage = "https://github.com/Keriew/augustus";
license = licenses.agpl3Only;
platforms = platforms.all;
broken = stdenv.isDarwin;
maintainers = with maintainers; [ Thra11 ];
};
}