Skip to content

Commit 8d26e1d

Browse files
committed
git-branchless: improve for cross compiling
In a previous commit d5a849c, the `postInstall` hook invokes the host binary `git-branchless`, which would probably fail when cross compiling. In this commit, we simply disable the hook in these cases. Also, add myself to meta.maintainers.
1 parent 4fa56ac commit 8d26e1d

File tree

1 file changed

+2
-1
lines changed
  • pkgs/applications/version-management/git-branchless

1 file changed

+2
-1
lines changed

pkgs/applications/version-management/git-branchless/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ rustPlatform.buildRustPackage rec {
4040
libiconv
4141
];
4242

43-
postInstall = ''
43+
postInstall = lib.optionalString (with stdenv; buildPlatform.canExecute hostPlatform) ''
4444
$out/bin/git-branchless install-man-pages $out/share/man
4545
'';
4646

@@ -63,6 +63,7 @@ rustPlatform.buildRustPackage rec {
6363
maintainers = with maintainers; [
6464
nh2
6565
hmenke
66+
bryango
6667
];
6768
};
6869
}

0 commit comments

Comments
 (0)