tinyxxd: fix build on Darwin (#485976)

This commit is contained in:
Philip Taron
2026-02-01 20:41:57 +00:00
committed by GitHub
+9
View File
@@ -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)" ];