gitstatus: patch fewer characters
This is a followup to https://github.com/NixOS/nixpkgs/pull/76744. The patch is still too aggressive because it captures additional local variables declared in the same line. It should stop when it hits whitespace. See https://github.com/romkatv/gitstatus/pull/92.
This commit is contained in:
parent
d04c6e0c26
commit
be4efc8010
@ -13,7 +13,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildInputs = [ (callPackage ./romkatv_libgit2.nix {}) ];
|
buildInputs = [ (callPackage ./romkatv_libgit2.nix {}) ];
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
sed -i "s|local daemon=.*|local daemon=$out/bin/gitstatusd|" gitstatus.plugin.zsh
|
sed -i "s|local daemon=\S*|local daemon=$out/bin/gitstatusd|" gitstatus.plugin.zsh
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -Dm755 gitstatusd $out/bin/gitstatusd
|
install -Dm755 gitstatusd $out/bin/gitstatusd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user