From cdb450dcbaed137886897fc5497bade0c895b296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ng=C3=B4=20Ng=E1=BB=8Dc=20=C4=90=E1=BB=A9c=20Huy?= Date: Sat, 26 Nov 2022 12:37:03 +0700 Subject: [PATCH 1/2] maintainers: add huyngo --- maintainers/maintainer-list.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index ee2014d6525b..c3e930236842 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -5734,6 +5734,15 @@ githubId = 15371828; name = "Hugo Lageneste"; }; + huyngo = { + email = "huyngo@disroot.org"; + github = "Huy-Ngo"; + name = "Ngô Ngọc Đức Huy"; + githubId = 19296926; + keys = [{ + fingerprint = "DF12 23B1 A9FD C5BE 3DA5 B6F7 904A F1C7 CDF6 95C3"; + }]; + }; hypersw = { email = "baltic@hypersw.net"; github = "hypersw"; From f5339d2339ebc728e32131c8141786b0e5e30cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ng=C3=B4=20Ng=E1=BB=8Dc=20=C4=90=E1=BB=A9c=20Huy?= Date: Sat, 26 Nov 2022 12:44:34 +0700 Subject: [PATCH 2/2] honk: init at 0.9.8 Honk is a minimalistic ActivityPub server. https://humungus.tedunangst.com/r/honk --- pkgs/servers/honk/default.nix | 44 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 46 insertions(+) create mode 100644 pkgs/servers/honk/default.nix diff --git a/pkgs/servers/honk/default.nix b/pkgs/servers/honk/default.nix new file mode 100644 index 000000000000..913b607ac843 --- /dev/null +++ b/pkgs/servers/honk/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c841d8b933da..d95cff8de9d3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23726,6 +23726,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 { };