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:
parent
9e67451750
commit
93cc05d363
3 changed files with 18 additions and 0 deletions
1
third_party/default.nix
vendored
1
third_party/default.nix
vendored
|
@ -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
1
third_party/git/.skip-subtree
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
Subtrees of this directory belong to git (third-party).
|
16
third_party/git/default.nix
vendored
Normal file
16
third_party/git/default.nix
vendored
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue