lol
1{ lib
2, stdenv
3, fetchzip
4, cmake
5, zlib
6}:
7
8stdenv.mkDerivation rec {
9 pname = "zdbsp";
10 version = "1.19";
11
12 src = fetchzip {
13 url = "https://zdoom.org/files/utils/zdbsp/zdbsp-${version}-src.zip";
14 sha256 = "sha256-DTj0jMNurvwRwMbo0L4+IeNlbfIwUbqcG1LKd68C08g=";
15 stripRoot = false;
16 };
17
18 nativeBuildInputs = [
19 cmake
20 ];
21
22 buildInputs = [
23 zlib
24 ];
25
26 installPhase = ''
27 install -Dm755 zdbsp $out/bin/zdbsp
28 '';
29
30 meta = with lib; {
31 homepage = "https://zdoom.org/wiki/ZDBSP";
32 description = "ZDoom's internal node builder for DOOM maps";
33 license = licenses.gpl2Plus;
34 maintainers = with maintainers; [ lassulus siraben ];
35 platforms = platforms.unix;
36 };
37}