diff options
author | Francesco Gazzetta <fgaz@fgaz.me> | 2022-03-23 04:51:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-23 05:51:47 +0100 |
commit | f40327ce40985c5b765b4b5277471330263f84ed (patch) | |
tree | 1ca3d866f631d6c242b7b9e05f183b85f490bf80 /pkgs/applications/version-management | |
parent | e9c91a137a4aa8b35a3cdb01a3fc10e8885d1470 (diff) |
hut: init at unstable-2022-03-02 (#162663)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r-- | pkgs/applications/version-management/git-and-tools/hut/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/hut/default.nix b/pkgs/applications/version-management/git-and-tools/hut/default.nix new file mode 100644 index 0000000000000..ad0c02aa2e0d6 --- /dev/null +++ b/pkgs/applications/version-management/git-and-tools/hut/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildGoModule +, fetchFromSourcehut +, scdoc +, unstableGitUpdater +}: + +buildGoModule { + pname = "hut"; + version = "unstable-2022-03-02"; + + src = fetchFromSourcehut { + owner = "~emersion"; + repo = "hut"; + rev = "55ad2fbd9ceeeb9e7dc203c15476fa785f1209e0"; + sha256 = "sha256-j2IVwCm7iq3JKccPL8noRBhqw+V+4qfcpAwV65xhZk0="; + }; + + vendorSha256 = "sha256-zdQvk0M1a+Y90pnhqIpKxLJnlVJqMoSycewTep2Oux4="; + + nativeBuildInputs = [ + scdoc + ]; + + makeFlags = [ "PREFIX=$(out)" ]; + + postBuild = '' + make $makeFlags completions doc/hut.1 + ''; + + preInstall = '' + make $makeFlags install + ''; + + passthru.updateScript = unstableGitUpdater { }; + + meta = with lib; { + homepage = "https://sr.ht/~emersion/hut/"; + description = "A CLI tool for Sourcehut / sr.ht"; + license = licenses.agpl3Only; + maintainers = with maintainers; [ fgaz ]; + }; +} |