drat: Fix build on darwin

This commit is contained in:
Linus Vettiger
2026-05-16 18:41:40 +02:00
parent 0acc4b806b
commit e3e65b5769
+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" ""