diff options
Diffstat (limited to 'pkgs/games/zdoom/zdbsp.nix')
-rw-r--r-- | pkgs/games/zdoom/zdbsp.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/games/zdoom/zdbsp.nix b/pkgs/games/zdoom/zdbsp.nix new file mode 100644 index 0000000000000..e3453628ba988 --- /dev/null +++ b/pkgs/games/zdoom/zdbsp.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, cmake, unzip, zlib }: + +stdenv.mkDerivation rec { + name = "zdbsp-${version}"; + version = "1.19"; + + src = fetchurl { + url = "https://zdoom.org/files/utils/zdbsp/zdbsp-${version}-src.zip"; + sha256 = "0j82q7g7hgvnahk6gdyhmn9880mqii3b4agqc98f5xaj3kxmd2dr"; + }; + + nativeBuildInputs = [cmake unzip]; + buildInputs = [zlib]; + sourceRoot = "."; + enableParallelBuilding = true; + installPhase = '' + install -Dm755 zdbsp $out/bin/zdbsp + ''; + + meta = with stdenv.lib; { + description = "ZDoom's internal node builder for DOOM maps"; + homepage = "https://zdoom.org/wiki/ZDBSP"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ertes]; + platforms = platforms.linux; + }; +} |