Merge pull request #168877 from LibreCybernetics/staging-next-fixes

This commit is contained in:
Martin Weinelt 2022-04-16 19:17:56 +02:00 committed by GitHub
commit 9a171b1137
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 52 additions and 20 deletions

View File

@ -1,16 +1,24 @@
{ stdenv, lib, fetchhg, cmake, which, python3, osi, cplex }:
{ stdenv
, lib
, fetchFromGitHub
, cmake
, python3
, osi
, cplex
}:
stdenv.mkDerivation {
version = "19.12";
pname = "fast-downward";
version = "21.12.0";
src = fetchhg {
url = "http://hg.fast-downward.org/";
rev = "41688a4f16b3";
sha256 = "08m4k1mkx4sz7c2ab7xh7ip6b67zxv7kl68xrvwa83xw1yigqkna";
src = fetchFromGitHub {
owner = "aibasel";
repo = "downward";
rev = "release-21.12.0";
sha256 = "sha256-qc+SaUpIYm7bnOZlHH2mdvUaMBB+VRyOCQM/BOoOaPE=";
};
nativeBuildInputs = [ cmake which ];
nativeBuildInputs = [ cmake ];
buildInputs = [ python3 python3.pkgs.wrapPython osi ];
cmakeFlags =

View File

@ -16,6 +16,10 @@ stdenv.mkDerivation rec {
buildInputs = [ wxGTK30 boost lua zlib bzip2 xylib readline
gnuplot swig3 ];
NIX_CFLAGS_COMPILE = [
"-std=c++11"
];
meta = {
description = "Curve fitting and peak fitting software";
license = lib.licenses.gpl2;

View File

@ -21,6 +21,11 @@ stdenv.mkDerivation rec {
"-DCMAKE_BUILD_TYPE=Release"
];
NIX_CFLAGS_COMPILE = [
"-Wno-error=misleading-indentation"
"-Wno-error=stringop-overflow"
];
meta = {
description = "FlatBuffers Compiler and Library in C for C ";
homepage = "https://github.com/dvidelabs/flatcc";

View File

@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ perl ];
NIX_CFLAGS_COMPILE = [
"-std=c++11"
];
enableParallelBuilding = true;
postInstall = ''

View File

@ -1,10 +0,0 @@
pkgs:
let
callPackage = pkgs.callPackage;
in {
deliantra-server = callPackage ./deliantra-server.nix {};
deliantra-arch = callPackage ./deliantra-arch.nix {};
deliantra-maps = callPackage ./deliantra-maps.nix {};
deliantra-data = callPackage ./deliantra-data.nix {};
}

View File

@ -23,16 +23,20 @@ stdenv.mkDerivation rec {
autoconf perl gperf optipng pngnq rsync imagemagick
pkg-config makeWrapper
];
propagatedBuildInputs = perl-deps;
buildInputs = [
blitz boost glib
];
hardeningDisable = [ "format" ];
patches = [
./0001-abs.patch
./0002-datadir.patch
];
postFixup = ''
wrapProgram $out/bin/cfutil --prefix PERL5LIB : $PERL5LIB
wrapProgram $out/bin/deliantra-server --prefix PERL5LIB : $PERL5LIB

View File

@ -15,7 +15,14 @@ stdenv.mkDerivation rec {
# for flock
lib.optional stdenv.isLinux util-linux;
CFLAGS = "-O2 -Wno-error=stringop-truncation";
NIX_CFLAGS_COMPILE = [
"-O2"
"-Wno-error=array-bounds"
"-Wno-error=stringop-overflow"
"-Wno-error=stringop-overread"
"-Wno-error=stringop-truncation"
];
buildPhase =
lib.optionalString stdenv.isAarch32 "Seccomp_NO=1 "
+ "bash do";

View File

@ -31127,8 +31127,18 @@ with pkgs;
cuyo = callPackage ../games/cuyo { };
inherit (import ../games/deliantra pkgs)
deliantra-server deliantra-arch deliantra-maps deliantra-data;
deliantra-server = callPackage ../games/deliantra/server.nix {
stdenv = if stdenv.cc.isGNU then gcc10Stdenv else stdenv;
};
deliantra-arch = callPackage ../games/deliantra/arch.nix {
stdenv = if stdenv.cc.isGNU then gcc10Stdenv else stdenv;
};
deliantra-maps = callPackage ../games/deliantra/maps.nix {
stdenv = if stdenv.cc.isGNU then gcc10Stdenv else stdenv;
};
deliantra-data = callPackage ../games/deliantra/data.nix {
stdenv = if stdenv.cc.isGNU then gcc10Stdenv else stdenv;
};
ddnet = callPackage ../games/ddnet { };