mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-05 09:58:50 +03:00
d994dabace
We do not use a "plugin system" for Git addons anymore, and therefore this directory is no longer useful. Indeed that directory is way more confusing, given that it includes more than mere Git addons, going from Bitbucket server command-line tools to complete rewrites of Git in exotic programming languages. Also, without this directory, the mental load of decision-making reduces a lot. When anyone is interested in including a new git-related tool, just put it into pkgs/applications/version-management, without apologies.
41 lines
762 B
Nix
41 lines
762 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromSourcehut
|
|
, scdoc
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "hut";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~emersion";
|
|
repo = "hut";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-g9KbOtZaBAgy/iBBh/Tv5ULJNnNzwzZpA6DOynl+dnk=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-vuAx8B34Za+GEtekFOUaY07hBk3O2OaJ1JmulbIhwbs=";
|
|
|
|
nativeBuildInputs = [
|
|
scdoc
|
|
];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
postBuild = ''
|
|
make $makeFlags completions doc/hut.1
|
|
'';
|
|
|
|
preInstall = ''
|
|
make $makeFlags install
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://sr.ht/~emersion/hut/";
|
|
description = "A CLI tool for Sourcehut / sr.ht";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ fgaz ];
|
|
};
|
|
}
|