mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 13:33:12 +00:00
fd39bbae62
* chocolate-doom: format with `nixfmt-rfc-style` * chocolate-doom: refactor * chocolate-doom: update homepage * chocolate-doom: add mainProgram * chocolate-doom: add myself as maintainer * chocolate-doom: 3.0.1 -> 3.1.0 * chocolate-doom: remove hydraPlatforms * chocolate-doom: add `meta.changelog` * chocolate-doom: add missing dependencies
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
libpng,
|
|
libsamplerate,
|
|
pkg-config,
|
|
python3,
|
|
SDL2,
|
|
SDL2_mixer,
|
|
SDL2_net,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "chocolate-doom";
|
|
version = "3.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chocolate-doom";
|
|
repo = "chocolate-doom";
|
|
rev = "refs/tags/chocolate-doom-${finalAttrs.version}";
|
|
hash = "sha256-yDPfqCuzRbDhOQisIDAGo2bmmMjT+0lds5xc9C2pqoU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs --build man/{simplecpp,docgen}
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
# for documentation
|
|
python3
|
|
];
|
|
|
|
buildInputs = [
|
|
libpng
|
|
libsamplerate
|
|
SDL2
|
|
SDL2_mixer
|
|
SDL2_net
|
|
];
|
|
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
strictDeps = true;
|
|
|
|
meta = {
|
|
homepage = "https://www.chocolate-doom.org";
|
|
changelog = "https://github.com/chocolate-doom/chocolate-doom/releases/tag/chocolate-doom-${finalAttrs.version}";
|
|
description = "Doom source port that accurately reproduces the experience of Doom as it was played in the 1990s";
|
|
mainProgram = "chocolate-doom";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ Gliczy ];
|
|
};
|
|
})
|