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
-
{ callPackage, lib, stdenv, fetchFromGitHub, git, zsh, ...}:
2
3
stdenv.mkDerivation rec {
4
pname = "gitstatus";
···
11
sha256 = "sha256-MQG4thW73gDqY68bKP2FO8z5uc2R/tED+/X9qas/GOA=";
12
};
13
14
-
buildInputs = [ (callPackage ./romkatv_libgit2.nix {}) ];
15
-
patchPhase = ''
0
16
sed -i '1i GITSTATUS_AUTO_INSTALL=''${GITSTATUS_AUTO_INSTALL-0}' gitstatus.plugin.sh
17
sed -i '1i GITSTATUS_AUTO_INSTALL=''${GITSTATUS_AUTO_INSTALL-0}' gitstatus.plugin.zsh
18
sed -i "1a GITSTATUS_DAEMON=$out/bin/gitstatusd" install
19
'';
0
20
installPhase = ''
21
install -Dm755 usrbin/gitstatusd $out/bin/gitstatusd
22
install -Dm444 gitstatus.plugin.sh $out
···
24
install -Dm555 install $out
25
install -Dm444 build.info $out
26
'';
0
27
# Don't install the "install" and "build.info" files, which the end user
28
# should not need to worry about.
29
pathsToLink = [
···
1
+
{ callPackage, lib, stdenv, fetchFromGitHub, git, zsh }:
2
3
stdenv.mkDerivation rec {
4
pname = "gitstatus";
···
11
sha256 = "sha256-MQG4thW73gDqY68bKP2FO8z5uc2R/tED+/X9qas/GOA=";
12
};
13
14
+
buildInputs = [ (callPackage ./romkatv_libgit2.nix { }) ];
15
+
16
+
postPatch = ''
17
sed -i '1i GITSTATUS_AUTO_INSTALL=''${GITSTATUS_AUTO_INSTALL-0}' gitstatus.plugin.sh
18
sed -i '1i GITSTATUS_AUTO_INSTALL=''${GITSTATUS_AUTO_INSTALL-0}' gitstatus.plugin.zsh
19
sed -i "1a GITSTATUS_DAEMON=$out/bin/gitstatusd" install
20
'';
21
+
22
installPhase = ''
23
install -Dm755 usrbin/gitstatusd $out/bin/gitstatusd
24
install -Dm444 gitstatus.plugin.sh $out
···
26
install -Dm555 install $out
27
install -Dm444 build.info $out
28
'';
29
+
30
# Don't install the "install" and "build.info" files, which the end user
31
# should not need to worry about.
32
pathsToLink = [