blob: 8a7c10bfdb471225d8dee5cfb1f6617f1d0eb922 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ pkgs, ... }:
let
mozlz4_textconv = pkgs.substituteAll {
src = diff/mozlz4.in;
isExecutable = true;
inherit (pkgs) execline mozlz4a;
python = pkgs.python3;
};
# Git only supports absolute paths for this, so give it a wrapper
# program that execs the msmtp in PATH.
sendmail = pkgs.writeScript "git-sendmail" ''
#! ${pkgs.execline}/bin/execlineb -S0
msmtp $@
'';
config = pkgs.substituteAll {
src = ./config.in;
inherit mozlz4_textconv;
python = pkgs.python3;
smtpServer = sendmail;
attributesfile = ./attributes;
ignorefile = ./ignore;
preferLocalBuild = true;
};
in
{
environment.systemPackages = with pkgs; with gitAndTools; [
(git.override { svnSupport = true; sendEmailSupport = true; })
git-remote-hg
];
xdg.config.users.qyliss.paths."git/config" = config;
}
|