Merge pull request #269203 from NickCao/maddy-clang

maddy: fix build with clang
This commit is contained in:
Nick Cao
2023-11-22 13:19:03 -05:00
committed by GitHub
+12 -1
View File
@@ -1,4 +1,13 @@
{ lib, buildGoModule, fetchFromGitHub, pam, coreutils, installShellFiles, scdoc, nixosTests }:
{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
, pam
, coreutils
, installShellFiles
, scdoc
, nixosTests
}:
buildGoModule rec {
pname = "maddy";
@@ -43,6 +52,8 @@ buildGoModule rec {
--replace "/bin/kill" "${coreutils}/bin/kill"
'';
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=strict-prototypes";
passthru.tests.nixos = nixosTests.maddy;
meta = with lib; {