diff --git a/pkgs/by-name/ti/tinyxxd/package.nix b/pkgs/by-name/ti/tinyxxd/package.nix index 4735b61206b1..df2f55197c10 100644 --- a/pkgs/by-name/ti/tinyxxd/package.nix +++ b/pkgs/by-name/ti/tinyxxd/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch2, installShellFiles, vim, }: @@ -17,6 +18,14 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-ePLqbcwlqBK/x645Yf5pgHSCtBSd3mqktAHhomxU3dM="; }; + patches = [ + # Darwin fails to build due to the warning from the unused `-fno-plt` being turned into an error. + (fetchpatch2 { + url = "https://github.com/xyproto/tinyxxd/commit/63ee0f4a03b06ded1eb531129240a4f0880a41dc.patch?full_index=1"; + hash = "sha256-sZG7hZUmF0PK2TYcUfHXTz2VCwe5Ba6cm3CVJ9aA2SQ="; + }) + ]; + nativeBuildInputs = [ installShellFiles ]; installFlags = [ "PREFIX=$(out)" ];