forked from mirrors/nixpkgs
054214057a
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.
31 lines
854 B
Nix
31 lines
854 B
Nix
{callPackage, stdenv, fetchFromGitHub, ...}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "gitstatus";
|
|
version = "unstable-2019-05-06";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "romkatv";
|
|
repo = "gitstatus";
|
|
rev = "9c791f93c23c04dadfab8b4309a863b62a6ee424";
|
|
sha256 = "0jbdrgl62x6j920h72n2q6304fb6gdgnmllpv4aa76m13b9qhgq6";
|
|
};
|
|
|
|
buildInputs = [ (callPackage ./romkatv_libgit2.nix {}) ];
|
|
patchPhase = ''
|
|
sed -i "s|local daemon=.*|local daemon=$out/bin/gitstatusd|" gitstatus.plugin.zsh
|
|
'';
|
|
installPhase = ''
|
|
install -Dm755 gitstatusd $out/bin/gitstatusd
|
|
install -Dm444 gitstatus.plugin.zsh $out
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "10x faster implementation of `git status` command";
|
|
homepage = https://github.com/romkatv/gitstatus;
|
|
license = [ licenses.gpl3 ];
|
|
|
|
maintainers = [ maintainers.mmlb ];
|
|
};
|
|
}
|