1
0
Fork 0
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:
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 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"

View file

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