Commit 028231c0 authored by Azat Bahawi's avatar Azat Bahawi
Browse files

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.
parent 1008fa13
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 ];