hut: init at unstable-2022-03-02 (#162663)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Francesco Gazzetta 2022-03-23 04:51:47 +00:00 committed by GitHub
parent e9c91a137a
commit f40327ce40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -6662,6 +6662,8 @@ with pkgs;
humanfriendly = with python3Packages; toPythonApplication humanfriendly;
hut = callPackage ../applications/version-management/git-and-tools/hut { };
hwinfo = callPackage ../tools/system/hwinfo { };
hybridreverb2 = callPackage ../applications/audio/hybridreverb2 {