Skip to content

Commit 4d2a801

Browse files
committed
glog: patch /usr/bin/true in tests
Tests appear to use `/usr/bin/true` as a fake mailer, which causes an error in the check phase. This does not cause the tests to fail, and this is why the replace is a warn and not fail. Patching it nonetheless.
1 parent a608eba commit 4d2a801

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkgs/by-name/gl/glog/package.nix

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
gflags,
77
gtest,
88
perl,
9+
coreutils,
910
}:
1011

1112
stdenv.mkDerivation rec {
@@ -19,6 +20,11 @@ stdenv.mkDerivation rec {
1920
sha256 = "sha256-+nwWP6VBmhgU7GCPSEGUzvUSCc48wXME181WpJ5ABP4=";
2021
};
2122

23+
postPatch = ''
24+
substituteInPlace src/logging_unittest.cc \
25+
--replace-warn "/usr/bin/true" "${coreutils}/bin/true"
26+
'';
27+
2228
nativeBuildInputs = [ cmake ];
2329

2430
buildInputs = [ gtest ];

0 commit comments

Comments
 (0)