mirror of
https://github.com/nix-community/home-manager
synced 2024-12-25 03:09:47 +01:00
git: remove test dependencies on delta and git-lfs
This commit is contained in:
parent
b584745506
commit
57518cd0bf
2 changed files with 13 additions and 5 deletions
|
@ -7,7 +7,7 @@
|
||||||
gpgSign = true
|
gpgSign = true
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
pager = "@deltaCommand@"
|
pager = "@delta@/bin/delta"
|
||||||
|
|
||||||
[delta]
|
[delta]
|
||||||
features = "decorations"
|
features = "decorations"
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
program = "path-to-gpg"
|
program = "path-to-gpg"
|
||||||
|
|
||||||
[interactive]
|
[interactive]
|
||||||
diffFilter = "@deltaCommand@ --color-only"
|
diffFilter = "@delta@/bin/delta --color-only"
|
||||||
|
|
||||||
[user]
|
[user]
|
||||||
email = "user@example.org"
|
email = "user@example.org"
|
||||||
|
|
|
@ -14,9 +14,6 @@ let
|
||||||
substituteExpected = path:
|
substituteExpected = path:
|
||||||
pkgs.substituteAll {
|
pkgs.substituteAll {
|
||||||
src = path;
|
src = path;
|
||||||
|
|
||||||
deltaCommand = "${pkgs.gitAndTools.delta}/bin/delta";
|
|
||||||
|
|
||||||
git_include_path = pkgs.writeText "contents"
|
git_include_path = pkgs.writeText "contents"
|
||||||
(builtins.readFile ./git-expected-include.conf);
|
(builtins.readFile ./git-expected-include.conf);
|
||||||
};
|
};
|
||||||
|
@ -82,6 +79,17 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(self: super: {
|
||||||
|
git-lfs = pkgs.writeScriptBin "dummy-git-lfs" "";
|
||||||
|
gitAndTools = super.gitAndTools // {
|
||||||
|
delta = pkgs.writeScriptBin "dummy-delta" "" // {
|
||||||
|
outPath = "@delta@";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
assertFileExists home-files/.config/git/config
|
assertFileExists home-files/.config/git/config
|
||||||
assertFileContent home-files/.config/git/config ${
|
assertFileContent home-files/.config/git/config ${
|
||||||
|
|
Loading…
Reference in a new issue