grc: add support for absolute store paths

Add support for absolute paths from Nix store. This will allow grc to
apply configs to direct execution of
`/nix/store/*-package-1.0.0/bin/hello` paths and not just PATH
expansion.
This commit is contained in:
Azat Bahawi 2023-09-22 16:14:49 +03:00
parent 1008fa1354
commit 028231c095

View File

@ -21,6 +21,10 @@ buildPythonApplication rec {
substituteInPlace $f \
--replace /usr/local/ $out/
done
# Support for absolute store paths.
substituteInPlace grc.conf \
--replace "^([/\w\.]+\/)" "^([/\w\.\-]+\/)"
'';
nativeBuildInputs = [ installShellFiles ];