From 56449e59d7aabd1c06fb67a51a1e129b55cb9270 Mon Sep 17 00:00:00 2001 From: yuuko Date: Thu, 29 Aug 2024 21:51:04 -0700 Subject: break out of system config --- srcds-pkgs/metamod-source.nix | 66 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 srcds-pkgs/metamod-source.nix (limited to 'srcds-pkgs/metamod-source.nix') diff --git a/srcds-pkgs/metamod-source.nix b/srcds-pkgs/metamod-source.nix new file mode 100644 index 0000000..2f9c92e --- /dev/null +++ b/srcds-pkgs/metamod-source.nix @@ -0,0 +1,66 @@ +{ lib, multiStdenv +, fetchFromGitHub, ed +, hl2sdk, ambuild, libfinite +}: let + owner = "alliedmodders"; + buildno = "1155"; +in multiStdenv.mkDerivation rec { + pname = "metamod-source"; + version = "1.11_${buildno}"; + + src = fetchFromGitHub rec { + inherit owner; + repo = pname; + rev = "2009298c32735b6de1712ff88e2309c"; + fetchSubmodules = true; + hash = "sha256-cPrllC3IljtV9SWn2NZbV8yHvehqLNGkZQ0RK07yCz4="; + }; + + nativeBuildInputs = [ ambuild ed ]; + + hardeningDisable = [ "all" ]; + + CXXFLAGS="-Wno-error=class-memaccess -Wno-error=format-truncation"; + + postPatch = '' + mkdir .git + echo "ref: refs/heads/main" > .git/HEAD + ed support/buildbot/generate_headers.py <