From 054214057ac0736b3169f729d990a2e12e3180d4 Mon Sep 17 00:00:00 2001 From: Benjamin Esham Date: Tue, 31 Dec 2019 10:29:08 -0500 Subject: gitstatus: patch fewer lines The sed invocation was changing all lines matching "local daemon.*". This changed the line it was supposed to, but two other lines that also matched that pattern were being modified, which meant that the "daemon_pid_var" and "daemon_pid" variables were not defined when they should have been. --- .../applications/version-management/git-and-tools/gitstatus/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/applications/version-management/git-and-tools/gitstatus/default.nix') diff --git a/pkgs/applications/version-management/git-and-tools/gitstatus/default.nix b/pkgs/applications/version-management/git-and-tools/gitstatus/default.nix index 8cf9662d8f9..bb08516701a 100644 --- a/pkgs/applications/version-management/git-and-tools/gitstatus/default.nix +++ b/pkgs/applications/version-management/git-and-tools/gitstatus/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation { buildInputs = [ (callPackage ./romkatv_libgit2.nix {}) ]; patchPhase = '' - sed -i "s|local daemon.*|local daemon=$out/bin/gitstatusd|" gitstatus.plugin.zsh + sed -i "s|local daemon=.*|local daemon=$out/bin/gitstatusd|" gitstatus.plugin.zsh ''; installPhase = '' install -Dm755 gitstatusd $out/bin/gitstatusd -- cgit 1.4.1