drat: Fix build on darwin (#521012)

This commit is contained in:
Silvan Mosberger
2026-05-17 14:44:52 +00:00
committed by GitHub
+5
View File
@@ -1,6 +1,7 @@
{
lib,
stdenv,
argp-standalone,
fetchFromGitHub,
}:
@@ -15,6 +16,10 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-1NmqG73sP25Uqf7DiSPgt7drONOg9ZkrtCS0tYVjSU0=";
};
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
argp-standalone
];
# Don't blow up on warnings; it makes upgrading the compiler difficult.
postPatch = ''
substituteInPlace Makefile --replace-fail "-Werror" ""