Unverified Commit 1359116a authored by Nick Cao's avatar Nick Cao
Browse files

maddy: fix build with clang

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