git: remove test dependencies on delta and git-lfs

This commit is contained in:
Robert Helgesson 2020-10-11 22:36:26 +02:00
parent b584745506
commit 57518cd0bf
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
2 changed files with 13 additions and 5 deletions

View File

@ -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"

View File

@ -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 ${