git-cache-fallback = { buildPythonPackage, fetchgit, git, backoff, mypy, }:
buildPythonPackage rec {
pname = "git-cache";
- version = "1.3.1";
+ version = "1.4.1";
src = fetchgit {
url = "https://scottworley.com/git-cache.git";
rev = "v${version}";
- sha256 = "0awz7f6avzw9fk9gp1kadj0nbmf1s60qic9zb6ww92zig3khg12k";
+ sha256 = "0ml1myhmd9mw1z5bwni9fhvx7h9dknhmqq4nyci9n5lvrhbmcdc9";
};
propagatedBuildInputs = [ backoff ];
checkInputs = [ git mypy ];
export GIT_COMMITTER_EMAIL=auto@mati.on
cache_dir=$(mktemp -d)
+data_dir=$(mktemp -d)
export XDG_CACHE_HOME=$cache_dir
+export XDG_DATA_HOME=$data_dir
nix_store=$(mktemp -d)
nix_state=$(mktemp -d)
if [ "$repo_dir" ];then rm -rf "$repo_dir"; fi
if [ "$conf" ];then rm "$conf"; fi
if [ "$cache_dir" ];then rm -rf "$cache_dir"; fi
+ if [ "$data_dir" ];then rm -rf "$data_dir"; fi
if [ "$nix_store" ];then rm -rf "$nix_store"; fi
if [ "$nix_state" ];then rm -rf "$nix_state"; fi
}