tinyxxd: fix build on Darwin

This commit is contained in:
Randy Eckenrode
2026-02-01 15:27:16 -05:00
parent aa65824a44
commit 00ce300465
+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)" ];