Unverified Commit b25a2b5f authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

rush: look for rush.rc in /etc (#189915)

parents d22587cd 7853e732
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -12,6 +12,12 @@ stdenv.mkDerivation rec {
  strictDeps = true;
  buildInputs = [ bash ];

  # Make sure that Rush looks for rush.rc in a directory that users can
  # modify easily.
  configureFlags = [ "--sysconfdir=/etc" ];
  # Prevent “make install” from trying to copy something to
  # /etc/rush.rc.
  installFlags = [ "sysconfdir=$(out)/etc" ];
  postInstall = ''
    substituteInPlace $out/bin/rush-po \
      --replace "exec perl" "exec ${lib.getExe perl}"