@@ -1,4 +1,4 @@
1−{ callPackage, lib, stdenv, fetchFromGitHub, git, zsh, ...}:
1+{ callPackage, lib, stdenv, fetchFromGitHub, git, zsh }:
22
33stdenv.mkDerivation rec {
44 pname = "gitstatus";
@@ -11,12 +11,14 @@ stdenv.mkDerivation rec {
1111 sha256 = "sha256-MQG4thW73gDqY68bKP2FO8z5uc2R/tED+/X9qas/GOA=";
1212 };
1313
14− buildInputs = [ (callPackage ./romkatv_libgit2.nix {}) ];
15− patchPhase = ''
14+ buildInputs = [ (callPackage ./romkatv_libgit2.nix { }) ];
15+
16+ postPatch = ''
1617 sed -i '1i GITSTATUS_AUTO_INSTALL=''${GITSTATUS_AUTO_INSTALL-0}' gitstatus.plugin.sh
1718 sed -i '1i GITSTATUS_AUTO_INSTALL=''${GITSTATUS_AUTO_INSTALL-0}' gitstatus.plugin.zsh
1819 sed -i "1a GITSTATUS_DAEMON=$out/bin/gitstatusd" install
1920 '';
21+
2022 installPhase = ''
2123 install -Dm755 usrbin/gitstatusd $out/bin/gitstatusd
2224 install -Dm444 gitstatus.plugin.sh $out
@@ -24,6 +26,7 @@ stdenv.mkDerivation rec {
2426 install -Dm555 install $out
2527 install -Dm444 build.info $out
2628 '';
29+
2730 # Don't install the "install" and "build.info" files, which the end user
2831 # should not need to worry about.
2932 pathsToLink = [