From 7853e73254778e131376ecd8829987adee04c33c Mon Sep 17 00:00:00 2001 From: Jason Yundt Date: Mon, 5 Sep 2022 17:09:43 -0400 Subject: [PATCH] rush: look for rush.rc in /etc Before this change, rush would look for its configuration file in the Nix store. That made it difficult to declaratively configure rush. --- pkgs/by-name/ru/rush/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/ru/rush/package.nix b/pkgs/by-name/ru/rush/package.nix index 92d78644864f..0c4bea374c00 100644 --- a/pkgs/by-name/ru/rush/package.nix +++ b/pkgs/by-name/ru/rush/package.nix @@ -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}"