2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchzip, cmake, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zdbsp";
|
|
|
|
version = "1.19";
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
src = fetchzip {
|
2020-04-24 23:36:52 +00:00
|
|
|
url = "https://zdoom.org/files/utils/zdbsp/zdbsp-${version}-src.zip";
|
2021-01-05 17:05:55 +00:00
|
|
|
sha256 = "1j6k0appgjjj3ffbll9hy9nnbqr17szd1s66q08zrbkfqf6g8f0d";
|
|
|
|
stripRoot = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
zlib
|
|
|
|
];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 zdbsp $out/bin/zdbsp
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "ZDoom's internal node builder for DOOM maps";
|
|
|
|
homepage = "https://zdoom.org/wiki/ZDBSP";
|
|
|
|
license = licenses.gpl2Plus;
|
2021-01-05 17:05:55 +00:00
|
|
|
maintainers = with maintainers; [ lassulus siraben ];
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|