mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 05:03:09 +00: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
|
||||
|
||||
[core]
|
||||
pager = "@deltaCommand@"
|
||||
pager = "@delta@/bin/delta"
|
||||
|
||||
[delta]
|
||||
features = "decorations"
|
||||
|
@ -41,7 +41,7 @@
|
|||
program = "path-to-gpg"
|
||||
|
||||
[interactive]
|
||||
diffFilter = "@deltaCommand@ --color-only"
|
||||
diffFilter = "@delta@/bin/delta --color-only"
|
||||
|
||||
[user]
|
||||
email = "user@example.org"
|
||||
|
|
|
@ -14,9 +14,6 @@ let
|
|||
substituteExpected = path:
|
||||
pkgs.substituteAll {
|
||||
src = path;
|
||||
|
||||
deltaCommand = "${pkgs.gitAndTools.delta}/bin/delta";
|
||||
|
||||
git_include_path = pkgs.writeText "contents"
|
||||
(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 = ''
|
||||
assertFileExists home-files/.config/git/config
|
||||
assertFileContent home-files/.config/git/config ${
|
||||
|
|
Loading…
Reference in a new issue