2021-03-24 00:03:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, git
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "bit";
|
2021-07-05 21:59:53 +01:00
|
|
|
version = "1.1.2";
|
2021-03-24 00:03:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chriswalz";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-07-05 21:59:53 +01:00
|
|
|
sha256 = "sha256-18R0JGbG5QBDghF4SyhXaKe9UY5UzF7Ap0Y061Z1SZ8=";
|
2021-03-24 00:03:57 +00:00
|
|
|
};
|
|
|
|
|
2021-04-01 06:33:55 +01:00
|
|
|
vendorSha256 = "sha256-3Y/B14xX5jaoL44rq9+Nn4niGViLPPXBa8WcJgTvYTA=";
|
2021-03-24 00:03:57 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ git ];
|
|
|
|
|
|
|
|
# Tests require a repository
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command-line tool for git";
|
|
|
|
homepage = "https://github.com/chriswalz/bit";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|