From e32ab66ae1bff15d6a3ed9f6814ad514dd62e0ed Mon Sep 17 00:00:00 2001 From: John Rodewald Date: Sun, 25 May 2025 11:17:51 +0200 Subject: [PATCH] gcli: fix Darwin build Darwin builds are fixed in master, but the change is unreleased. --- pkgs/by-name/gc/gcli/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/gc/gcli/package.nix b/pkgs/by-name/gc/gcli/package.nix index 135790f60afc..36b9e3b2cf93 100644 --- a/pkgs/by-name/gc/gcli/package.nix +++ b/pkgs/by-name/gc/gcli/package.nix @@ -6,6 +6,7 @@ pkg-config, byacc, flex, + fetchpatch, }: stdenv.mkDerivation rec { @@ -19,6 +20,15 @@ stdenv.mkDerivation rec { hash = "sha256-N5dzGhyXPDWcm/cNUSUQt4rR+PzaD1OUssRO3Sdfmoo="; }; + patches = [ + # Darwin builds are fixed in master, but the change is unreleased. + (fetchpatch { + name = "darwin-build-fix.patch"; + url = "https://github.com/herrhotzenplotz/gcli/commit/720e372250fd363bdd90e9452907508563e30f93.patch"; + hash = "sha256-TpjIisje20YObN2wf8iQlwHlY5kg0S7xTkUWxAmK+po="; + }) + ]; + nativeBuildInputs = [ pkg-config byacc