maddy: fix build with clang

This commit is contained in:
Nick Cao 2023-11-22 09:44:27 -05:00
parent c6dc262685
commit 1359116a9f
No known key found for this signature in database

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; {