mirror of
https://codeberg.org/spire/nix.git
synced 2026-06-03 18:04:10 +02:00
build sourcemod with clang
This commit is contained in:
parent
f695af20ce
commit
4b0e46193b
1 changed files with 3 additions and 3 deletions
|
|
@ -1,15 +1,15 @@
|
||||||
{ stdenv, multiStdenv, fetchFromGitHub, ambuild, metamod-source, symlinkJoin, sdks ? {} }: let
|
{ clangMultiStdenv, fetchFromGitHub, ambuild, metamod-source, symlinkJoin, sdks ? {} }: let
|
||||||
inherit (builtins) concatStringsSep attrNames attrValues;
|
inherit (builtins) concatStringsSep attrNames attrValues;
|
||||||
sdkNames = attrNames sdks;
|
sdkNames = attrNames sdks;
|
||||||
combinedSdks = symlinkJoin {
|
combinedSdks = symlinkJoin {
|
||||||
name = "hl2sdk-${concatStringsSep "-" (attrNames sdks)}";
|
name = "hl2sdk-${concatStringsSep "-" (attrNames sdks)}";
|
||||||
paths = attrValues sdks;
|
paths = attrValues sdks;
|
||||||
};
|
};
|
||||||
in multiStdenv.mkDerivation rec {
|
in clangMultiStdenv.mkDerivation rec {
|
||||||
pname = "sourcemod";
|
pname = "sourcemod";
|
||||||
version = "1.10";
|
version = "1.10";
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error=class-memaccess -Wno-error=format-truncation -Wno-error=misleading-indentation";
|
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-const-int-float-conversion -Wno-error=tautological-overlap-compare";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "alliedmodders";
|
owner = "alliedmodders";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue