2021-01-03 09:49:22 +00:00
|
|
|
{ stdenv, fetchzip, cmake, zlib }:
|
2017-02-09 21:37:09 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "zdbsp";
|
2017-02-09 21:37:09 +00:00
|
|
|
version = "1.19";
|
|
|
|
|
2021-01-03 09:49:22 +00:00
|
|
|
src = fetchzip {
|
2017-02-09 21:37:09 +00:00
|
|
|
url = "https://zdoom.org/files/utils/zdbsp/zdbsp-${version}-src.zip";
|
2021-01-03 09:49:22 +00:00
|
|
|
sha256 = "1j6k0appgjjj3ffbll9hy9nnbqr17szd1s66q08zrbkfqf6g8f0d";
|
|
|
|
stripRoot = false;
|
2017-02-09 21:37:09 +00:00
|
|
|
};
|
|
|
|
|
2021-01-03 09:49:22 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
2017-02-09 21:37:09 +00:00
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 zdbsp $out/bin/zdbsp
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "ZDoom's internal node builder for DOOM maps";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://zdoom.org/wiki/ZDBSP";
|
2017-02-09 21:37:09 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2021-01-03 09:49:22 +00:00
|
|
|
maintainers = with maintainers; [ ertes ];
|
|
|
|
platforms = platforms.unix;
|
2017-02-09 21:37:09 +00:00
|
|
|
};
|
|
|
|
}
|