python312Packages.icontract: relax deps (#380554)
[NixPkgs.git] / pkgs / by-name / ch / chocolate-doom / package.nix
blob030f9bc556008e361d7b9561f86429dd526f1467
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   autoreconfHook,
6   libpng,
7   libsamplerate,
8   pkg-config,
9   python3,
10   SDL2,
11   SDL2_mixer,
12   SDL2_net,
15 stdenv.mkDerivation (finalAttrs: {
16   pname = "chocolate-doom";
17   version = "3.1.0";
19   src = fetchFromGitHub {
20     owner = "chocolate-doom";
21     repo = "chocolate-doom";
22     tag = "chocolate-doom-${finalAttrs.version}";
23     hash = "sha256-yDPfqCuzRbDhOQisIDAGo2bmmMjT+0lds5xc9C2pqoU=";
24   };
26   postPatch = ''
27     patchShebangs --build man/{simplecpp,docgen}
28   '';
30   nativeBuildInputs = [
31     autoreconfHook
32     pkg-config
33     # for documentation
34     python3
35   ];
37   buildInputs = [
38     libpng
39     libsamplerate
40     SDL2
41     SDL2_mixer
42     SDL2_net
43   ];
45   outputs = [
46     "out"
47     "man"
48   ];
50   enableParallelBuilding = true;
52   strictDeps = true;
54   meta = {
55     homepage = "https://www.chocolate-doom.org";
56     changelog = "https://github.com/chocolate-doom/chocolate-doom/releases/tag/chocolate-doom-${finalAttrs.version}";
57     description = "Doom source port that accurately reproduces the experience of Doom as it was played in the 1990s";
58     mainProgram = "chocolate-doom";
59     license = lib.licenses.gpl2Plus;
60     platforms = lib.platforms.unix;
61     maintainers = with lib.maintainers; [ Gliczy ];
62   };