about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/doom-ports/zdoom/zdbsp.nix
blob: d18eb144292fda6b83c2b72e6f07c82ea789530e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, stdenv
, fetchzip
, cmake
, zlib
}:

stdenv.mkDerivation rec {
  pname = "zdbsp";
  version = "1.19";

  src = fetchzip {
    url = "https://zdoom.org/files/utils/zdbsp/zdbsp-${version}-src.zip";
    sha256 = "sha256-DTj0jMNurvwRwMbo0L4+IeNlbfIwUbqcG1LKd68C08g=";
    stripRoot = false;
  };

  nativeBuildInputs = [
    cmake
  ];

  buildInputs = [
    zlib
  ];

  installPhase = ''
    install -Dm755 zdbsp $out/bin/zdbsp
  '';

  meta = with lib; {
    homepage = "https://zdoom.org/wiki/ZDBSP";
    description = "ZDoom's internal node builder for DOOM maps";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ lassulus siraben ];
    platforms = platforms.unix;
  };
}