feat(third_party/git): Add derivation to build git

This overrides the upstream derivation to:

* use local sources
* build `git send-email`

It also calls autoreconf before building because files that are
included in the git distribution tarball (which the normal derivation
uses) are missing from source.
This commit is contained in:
Vincent Ambo 2020-01-12 01:20:45 +00:00
parent 9e67451750
commit 93cc05d363
3 changed files with 18 additions and 0 deletions

View file

@ -20,6 +20,7 @@ let
# of the repo. They become available under `pkgs.third_party.<name>`
inherit (nixpkgs)
age
autoconf
bashInteractive
bat
buildGoPackage

1
third_party/git/.skip-subtree vendored Normal file
View file

@ -0,0 +1 @@
Subtrees of this directory belong to git (third-party).

16
third_party/git/default.nix vendored Normal file
View file

@ -0,0 +1,16 @@
# Use the upstream git derivation (there's a lot of stuff happening in
# there!) and just override the source:
{ pkgs, ... }:
with pkgs.third_party;
(originals.git.overrideAttrs(_: {
version = "2.23.0";
src = ./.;
doInstallCheck = false;
preConfigure = ''
${autoconf}/bin/autoreconf -i
'';
})).override {
sendEmailSupport = true;
}