tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
gitstatus: format, cleanup
Sandro Jäckel
4 years ago
e3bb39da
143fe598
+6
-3
1 changed file
expand all
collapse all
unified
split
pkgs
applications
version-management
git-and-tools
gitstatus
default.nix
+6
-3
pkgs/applications/version-management/git-and-tools/gitstatus/default.nix
···
1
1
-
{ callPackage, lib, stdenv, fetchFromGitHub, git, zsh, ...}:
1
1
+
{ callPackage, lib, stdenv, fetchFromGitHub, git, zsh }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
pname = "gitstatus";
···
11
11
sha256 = "sha256-MQG4thW73gDqY68bKP2FO8z5uc2R/tED+/X9qas/GOA=";
12
12
};
13
13
14
14
-
buildInputs = [ (callPackage ./romkatv_libgit2.nix {}) ];
15
15
-
patchPhase = ''
14
14
+
buildInputs = [ (callPackage ./romkatv_libgit2.nix { }) ];
15
15
+
16
16
+
postPatch = ''
16
17
sed -i '1i GITSTATUS_AUTO_INSTALL=''${GITSTATUS_AUTO_INSTALL-0}' gitstatus.plugin.sh
17
18
sed -i '1i GITSTATUS_AUTO_INSTALL=''${GITSTATUS_AUTO_INSTALL-0}' gitstatus.plugin.zsh
18
19
sed -i "1a GITSTATUS_DAEMON=$out/bin/gitstatusd" install
19
20
'';
21
21
+
20
22
installPhase = ''
21
23
install -Dm755 usrbin/gitstatusd $out/bin/gitstatusd
22
24
install -Dm444 gitstatus.plugin.sh $out
···
24
26
install -Dm555 install $out
25
27
install -Dm444 build.info $out
26
28
'';
29
29
+
27
30
# Don't install the "install" and "build.info" files, which the end user
28
31
# should not need to worry about.
29
32
pathsToLink = [