Skip to content

Commit

Permalink
glog: patch /usr/bin/true in tests (#378903)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Feb 5, 2025
2 parents 89cfd9a + 4f680c2 commit 6334286
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkgs/by-name/gl/glog/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
gflags,
gtest,
perl,
pkgsBuildHost,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: rec {
pname = "glog";
version = "0.7.1";

Expand All @@ -19,6 +20,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-+nwWP6VBmhgU7GCPSEGUzvUSCc48wXME181WpJ5ABP4=";
};

postPatch = lib.optionalString finalAttrs.doCheck ''
substituteInPlace src/logging_unittest.cc \
--replace-warn "/usr/bin/true" "${pkgsBuildHost.coreutils}/bin/true"
'';

nativeBuildInputs = [ cmake ];

buildInputs = [ gtest ];
Expand Down Expand Up @@ -90,4 +96,4 @@ stdenv.mkDerivation rec {
r-burns
];
};
}
})

0 comments on commit 6334286

Please sign in to comment.