1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/version-management/git-and-tools/gita/default.nix

38 lines
768 B
Nix
Raw Normal View History

2019-04-25 14:36:12 +01:00
{ lib
, buildPythonApplication
2020-05-28 07:56:10 +01:00
, fetchFromGitHub
2019-04-25 14:36:12 +01:00
, pyyaml
2019-10-12 13:47:43 +01:00
, setuptools
2020-05-28 07:56:10 +01:00
, installShellFiles
2019-04-25 14:36:12 +01:00
}:
2019-04-25 14:36:12 +01:00
buildPythonApplication rec {
2020-05-28 07:49:32 +01:00
version = "0.10.9";
pname = "gita";
2020-05-28 07:56:10 +01:00
src = fetchFromGitHub {
sha256 = "0wilyf4nnn2jyxrfqs8krya3zvhj6x36szsp9xhb6h08g1ihzp5i";
rev = "v${version}";
repo = "gita";
owner = "nosarthur";
};
2019-04-25 14:36:12 +01:00
propagatedBuildInputs = [
pyyaml
2019-10-12 13:47:43 +01:00
setuptools
];
2020-05-28 07:56:10 +01:00
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --bash --name gita ${src}/.gita-completion.bash
'';
meta = with lib; {
description = "A command-line tool to manage multiple git repos";
2020-03-31 05:20:27 +01:00
homepage = "https://github.com/nosarthur/gita";
license = licenses.mit;
maintainers = with maintainers; [ seqizz ];
};
}