diff options
Diffstat (limited to 'pkgs/games/zdoom')
-rw-r--r-- | pkgs/games/zdoom/bcc-git.nix | 9 | ||||
-rw-r--r-- | pkgs/games/zdoom/default.nix | 6 | ||||
-rw-r--r-- | pkgs/games/zdoom/zdbsp.nix | 25 |
3 files changed, 22 insertions, 18 deletions
diff --git a/pkgs/games/zdoom/bcc-git.nix b/pkgs/games/zdoom/bcc-git.nix index ae7a4ae6f42..aa3fdeca183 100644 --- a/pkgs/games/zdoom/bcc-git.nix +++ b/pkgs/games/zdoom/bcc-git.nix @@ -1,7 +1,8 @@ -{ stdenv, fetchFromGitHub }: +{ lib, stdenv, fetchFromGitHub }: stdenv.mkDerivation { - name = "doom-bcc-git-0.8.0.2018.01.04"; + pname = "doom-bcc"; + version = "unstable-2018-01-04"; src = fetchFromGitHub { owner = "wormt"; @@ -11,7 +12,7 @@ stdenv.mkDerivation { }; enableParallelBuilding = true; - makeFlags = ["CC=cc"]; + makeFlags = ["CC=${stdenv.cc.targetPrefix}cc"]; patches = [ ./bcc-warning-fix.patch ]; @@ -22,7 +23,7 @@ stdenv.mkDerivation { cp -av lib $out/lib/bcc ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Compiler for Doom/Hexen scripts (ACS, BCS)"; homepage = "https://github.com/wormt/bcc"; license = licenses.mit; diff --git a/pkgs/games/zdoom/default.nix b/pkgs/games/zdoom/default.nix index 646021eb2fc..3a31f8fdfb5 100644 --- a/pkgs/games/zdoom/default.nix +++ b/pkgs/games/zdoom/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, p7zip, cmake +{ lib, stdenv, fetchurl, p7zip, cmake , SDL2, openal, fluidsynth, soundfont-fluid, bzip2, zlib, libjpeg, game-music-emu , libsndfile, mpg123 }: @@ -25,8 +25,6 @@ stdenv.mkDerivation rec { sourceRoot = "."; - enableParallelBuilding = true; - NIX_CFLAGS_LINK = [ "-lopenal" "-lfluidsynth" ]; preConfigure = '' @@ -45,7 +43,7 @@ stdenv.mkDerivation rec { ln -s $out/lib/zdoom/zdoom $out/bin/zdoom ''; - meta = with stdenv.lib; { + meta = with lib; { homepage = "http://zdoom.org/"; description = "Enhanced port of the official DOOM source code"; # Doom source license, MAME license diff --git a/pkgs/games/zdoom/zdbsp.nix b/pkgs/games/zdoom/zdbsp.nix index e86ebd6dbc2..e688b908e12 100644 --- a/pkgs/games/zdoom/zdbsp.nix +++ b/pkgs/games/zdoom/zdbsp.nix @@ -1,27 +1,32 @@ -{ stdenv, fetchurl, cmake, unzip, zlib }: +{ lib, 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]; - buildInputs = [zlib]; - sourceRoot = "."; - enableParallelBuilding = true; + nativeBuildInputs = [ + cmake + ]; + + buildInputs = [ + zlib + ]; + installPhase = '' install -Dm755 zdbsp $out/bin/zdbsp ''; - meta = with stdenv.lib; { + meta = with 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; + maintainers = with maintainers; [ lassulus siraben ]; + platforms = platforms.unix; }; } |