uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
32
pkgs/games/zdoom/bcc-git.nix
Normal file
32
pkgs/games/zdoom/bcc-git.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "doom-bcc";
|
||||
version = "unstable-2018-01-04";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wormt";
|
||||
repo = "bcc";
|
||||
rev = "d58b44d9f18b28fd732c27113e5607a454506d19";
|
||||
sha256 = "1m83ip40ln61qrvb1fbgaqbld2xip9n3k817lwkk1936pml9zcrq";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
makeFlags = ["CC=${stdenv.cc.targetPrefix}cc"];
|
||||
|
||||
patches = [ ./bcc-warning-fix.patch ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/{bin,lib,share/doc}
|
||||
install -m755 bcc $out/bin/bcc
|
||||
cp -av doc $out/share/doc/bcc
|
||||
cp -av lib $out/lib/bcc
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Compiler for Doom/Hexen scripts (ACS, BCS)";
|
||||
homepage = "https://github.com/wormt/bcc";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ertes];
|
||||
};
|
||||
}
|
||||
25
pkgs/games/zdoom/bcc-warning-fix.patch
Normal file
25
pkgs/games/zdoom/bcc-warning-fix.patch
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
From c6ac05c96b7908ccd35f3908fc0f13650b0583c0 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ertugrul=20S=C3=B6ylemez?= <esz@posteo.de>
|
||||
Date: Sat, 3 Feb 2018 17:08:54 +0100
|
||||
Subject: [PATCH] Remove -Werror
|
||||
|
||||
---
|
||||
Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index bbe2c75..3357d2d 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -4,7 +4,7 @@ EXE=bcc
|
||||
BUILD_DIR=build
|
||||
CC=gcc
|
||||
INCLUDE=-Isrc -I src/parse
|
||||
-OPTIONS=-Wall -Werror -Wno-unused -std=c99 -pedantic -Wstrict-aliasing \
|
||||
+OPTIONS=-Wall -Wno-unused -std=c99 -pedantic -Wstrict-aliasing \
|
||||
-Wstrict-aliasing=2 -Wmissing-field-initializers -D_BSD_SOURCE \
|
||||
-D_DEFAULT_SOURCE $(INCLUDE)
|
||||
VERSION_FILE=$(BUILD_DIR)/version.c
|
||||
--
|
||||
2.15.1
|
||||
|
||||
55
pkgs/games/zdoom/default.nix
Normal file
55
pkgs/games/zdoom/default.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{ lib, stdenv, fetchurl, p7zip, cmake
|
||||
, SDL2, openal, fluidsynth, soundfont-fluid, bzip2, zlib, libjpeg, game-music-emu
|
||||
, libsndfile, mpg123 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "zdoom";
|
||||
majorVersion = "2.8";
|
||||
version = "${majorVersion}.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://zdoom.org/files/zdoom/${majorVersion}/zdoom-${version}-src.7z";
|
||||
sha256 = "0453fqrh9l00xwphfxni5qkf9y134n3s1mr1dvi5cbkxcva7j8bq";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ p7zip cmake ];
|
||||
buildInputs = [
|
||||
SDL2 openal fluidsynth bzip2 zlib libjpeg game-music-emu libsndfile mpg123
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DFORCE_INTERNAL_GME=OFF"
|
||||
"-DGME_INCLUDE_DIR=${game-music-emu}/include"
|
||||
"-DGME_LIBRARIES=${game-music-emu}/lib/libgme.so"
|
||||
];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
NIX_CFLAGS_LINK = [ "-lopenal" "-lfluidsynth" ];
|
||||
|
||||
preConfigure = ''
|
||||
sed -i \
|
||||
-e "s@/usr/share/sounds/sf2/@${soundfont-fluid}/share/soundfonts/@g" \
|
||||
-e "s@FluidR3_GM.sf2@FluidR3_GM2-2.sf2@g" \
|
||||
src/sound/music_fluidsynth_mididevice.cpp
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -Dm755 zdoom "$out/lib/zdoom/zdoom"
|
||||
for i in *.pk3; do
|
||||
install -Dm644 "$i" "$out/lib/zdoom/$i"
|
||||
done
|
||||
mkdir -p $out/bin
|
||||
ln -s $out/lib/zdoom/zdoom $out/bin/zdoom
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://zdoom.org/";
|
||||
description = "Enhanced port of the official DOOM source code";
|
||||
# Doom source license, MAME license
|
||||
license = licenses.unfreeRedistributable;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ lassulus ];
|
||||
};
|
||||
}
|
||||
|
||||
32
pkgs/games/zdoom/zdbsp.nix
Normal file
32
pkgs/games/zdoom/zdbsp.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib, stdenv, fetchzip, cmake, zlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "zdbsp";
|
||||
version = "1.19";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://zdoom.org/files/utils/zdbsp/zdbsp-${version}-src.zip";
|
||||
sha256 = "1j6k0appgjjj3ffbll9hy9nnbqr17szd1s66q08zrbkfqf6g8f0d";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
zlib
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
install -Dm755 zdbsp $out/bin/zdbsp
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "ZDoom's internal node builder for DOOM maps";
|
||||
homepage = "https://zdoom.org/wiki/ZDBSP";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ lassulus siraben ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue