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