Merge pull request #202698 from Huy-Ngo/honk

This commit is contained in:
Naïm Favier 2022-12-02 13:49:15 +01:00 committed by GitHub
commit f241e87c85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 0 deletions

View File

@ -5761,6 +5761,15 @@
githubId = 15371828;
name = "Hugo Lageneste";
};
huyngo = {
email = "huyngo@disroot.org";
github = "Huy-Ngo";
name = "Ngô Ngc Đc Huy";
githubId = 19296926;
keys = [{
fingerprint = "DF12 23B1 A9FD C5BE 3DA5 B6F7 904A F1C7 CDF6 95C3";
}];
};
hypersw = {
email = "baltic@hypersw.net";
github = "hypersw";

View File

@ -0,0 +1,44 @@
{ lib, buildGoModule, fetchurl, installShellFiles, sqlite }:
buildGoModule rec {
pname = "honk";
version = "0.9.8";
src = fetchurl {
url = "https://humungus.tedunangst.com/r/honk/d/honk-${version}.tgz";
sha256 = "0vh8y1aj2w0y2zxmybhik4iv7myyldfzkd75nzgmlz3vycr60rh6";
};
vendorHash = null;
buildInputs = [ sqlite ];
nativeBuildInputs = [ installShellFiles ];
subPackages = [ "." ];
postPatch = ''
substituteInPlace honk.go --replace \
"var viewDir = \".\"" \
"var viewDir = \"$out/share/honk\""
'';
postInstall = ''
mkdir -p $out/share/${pname}
mkdir -p $out/share/doc/${pname}
mv docs/{,honk-}intro.1
mv docs/{,honk-}hfcs.1
mv docs/{,honk-}vim.3
mv docs/{,honk-}activitypub.7
installManPage docs/honk.1 docs/honk.3 docs/honk.5 docs/honk.8 \
docs/honk-intro.1 docs/honk-hfcs.1 docs/honk-vim.3 docs/honk-activitypub.7
mv docs/{*.html,*.txt,*.jpg,*.png} $out/share/doc/${pname}
mv views $out/share/${pname}
'';
meta = with lib; {
description = "An ActivityPub server with minimal setup and support costs.";
homepage = "https://humungus.tedunangst.com/r/honk";
license = licenses.isc;
maintainers = with maintainers; [ huyngo ];
};
}

View File

@ -23883,6 +23883,8 @@ with pkgs;
home-assistant-component-tests = recurseIntoAttrs home-assistant.tests.components;
honk = callPackage ../servers/honk { };
hqplayerd = callPackage ../servers/hqplayerd { };
https-dns-proxy = callPackage ../servers/dns/https-dns-proxy { };