From 5a0d513116ae47e63f9f9de41d64c975d2f2d90d Mon Sep 17 00:00:00 2001 From: XYenon Date: Wed, 25 Dec 2024 14:34:54 +0800 Subject: [PATCH] zug: add a patch to include algorithm Fix `error: 'sort' is not a member of 'std'; did you mean 'qsort'?` (cherry picked from commit 70515a57c4ca8d7aa3622f721f97877f41d3ca95) --- pkgs/by-name/zu/zug/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/zu/zug/package.nix b/pkgs/by-name/zu/zug/package.nix index 6f87be40e1e60..5b66fadc505be 100644 --- a/pkgs/by-name/zu/zug/package.nix +++ b/pkgs/by-name/zu/zug/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, cmake, boost, }: @@ -15,6 +16,12 @@ stdenv.mkDerivation rec { rev = "v${version}"; hash = "sha256-7xTMDhPIx1I1PiYNanGUsK8pdrWuemMWM7BW+NQs2BQ="; }; + patches = [ + (fetchpatch { + url = "https://github.com/arximboldi/zug/commit/c8c74ada30d931e40636c13763b892f20d3ce1ae.patch"; + hash = "sha256-0x+ScRnziBeyHWYJowcVb2zahkcK2qKrMVVk2twhtHA="; + }) + ]; nativeBuildInputs = [ cmake ];