zdoom: refactor

This commit is contained in:
Ben Siraphob 2021-01-03 16:49:22 +07:00
parent 5bcc26338d
commit c602076c8f
2 changed files with 9 additions and 11 deletions

View File

@ -25,8 +25,6 @@ stdenv.mkDerivation rec {
sourceRoot = ".";
enableParallelBuilding = true;
NIX_CFLAGS_LINK = [ "-lopenal" "-lfluidsynth" ];
preConfigure = ''

View File

@ -1,18 +1,18 @@
{ stdenv, fetchurl, cmake, unzip, zlib }:
{ stdenv, fetchzip, cmake, zlib }:
stdenv.mkDerivation rec {
pname = "zdbsp";
version = "1.19";
src = fetchurl {
src = fetchzip {
url = "https://zdoom.org/files/utils/zdbsp/zdbsp-${version}-src.zip";
sha256 = "0j82q7g7hgvnahk6gdyhmn9880mqii3b4agqc98f5xaj3kxmd2dr";
sha256 = "1j6k0appgjjj3ffbll9hy9nnbqr17szd1s66q08zrbkfqf6g8f0d";
stripRoot = false;
};
nativeBuildInputs = [cmake unzip];
nativeBuildInputs = [ cmake ];
buildInputs = [ zlib ];
sourceRoot = ".";
enableParallelBuilding = true;
installPhase = ''
install -Dm755 zdbsp $out/bin/zdbsp
'';
@ -22,6 +22,6 @@ stdenv.mkDerivation rec {
homepage = "https://zdoom.org/wiki/ZDBSP";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ertes ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}