3
0
Fork 0
forked from mirrors/nixpkgs

git-machete: fix version checks

This commit is contained in:
figsoda 2021-10-12 22:33:23 -04:00 committed by GitHub
parent 302d33f4d1
commit 4c7bf71d8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,16 +33,15 @@ buildPythonApplication rec {
installShellCompletion --zsh --name _git-machete completion/git-machete.completion.zsh
'';
postInstallCheck = ''
git init
test "$($out/bin/git-machete version)" = "git-machete version ${version}"
'';
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
tests = {
version = testVersion {
package = git-machete;
};
};
};
meta = with lib; {