Commit 0c88c0c2 authored by Nick Cao's avatar Nick Cao Committed by github-actions[bot]
Browse files

maddy: fix build with clang

(cherry picked from commit 1359116a)
parent 4784a121
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
{ 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; {