gitstatus: patch in variable rather than regexing

Patching in the GITSTATUS_DAEMON variable seems like a more stable
solution than doing inline replacements.
This commit is contained in:
ryneeverett 2020-01-12 22:21:25 +00:00
parent be4efc8010
commit f5e446b30f

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation {
buildInputs = [ (callPackage ./romkatv_libgit2.nix {}) ];
patchPhase = ''
sed -i "s|local daemon=\S*|local daemon=$out/bin/gitstatusd|" gitstatus.plugin.zsh
sed -i "1i GITSTATUS_DAEMON=$out/bin/gitstatusd" gitstatus.plugin.zsh
'';
installPhase = ''
install -Dm755 gitstatusd $out/bin/gitstatusd