cgreen: Fix some uses of /usr/bin

This commit is contained in:
Neil Mayhew 2022-03-05 22:14:42 -07:00
parent 4b7d195177
commit a8bc4ffbf1

View File

@ -11,6 +11,12 @@ stdenv.mkDerivation rec {
sha256 = "sha256-aQrfsiPuNrEMscZrOoONiN665KlNmnOiYj9ZIyzW304=";
};
postPatch = ''
for F in tools/discoverer_acceptance_tests.c tools/discoverer.c; do
substituteInPlace "$F" --replace "/usr/bin/nm" "nm"
done
'';
nativeBuildInputs = [ cmake ];
meta = with lib; {