From abcbb46cac911fb39f64c6b97be8b23d0582fec8 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 7 Jan 2025 21:29:27 +0800 Subject: [PATCH] pkgs/go-avahi-cname: init --- pkgs/default.nix | 1 + pkgs/go-avahi-cname/default.nix | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/go-avahi-cname/default.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 1f620663..186b96f8 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -23,6 +23,7 @@ in lib.makeScope pkgs.newScope (self: { distant = callPackage ./distant.nix { }; gnome-search-provider-recoll = callPackage ./gnome-search-provider-recoll.nix { }; + go-avahi-cname = callPackage ./go-avahi-cname { }; hush-shell = callPackage ./hush-shell.nix { }; lazyjj = callPackage ./lazyjj { }; lwp = callPackage ./lwp { }; diff --git a/pkgs/go-avahi-cname/default.nix b/pkgs/go-avahi-cname/default.nix new file mode 100644 index 00000000..5fce9013 --- /dev/null +++ b/pkgs/go-avahi-cname/default.nix @@ -0,0 +1,23 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "go-avahi-cname"; + version = "2.0.6"; + + src = fetchFromGitHub { + owner = "grishy"; + repo = "go-avahi-cname"; + rev = "v${version}"; + hash = "sha256-hOX7/9mgWkdm6Rwe5zg0n4WC6y4erilMP5QPEWVSadI="; + }; + + vendorHash = "sha256-EmEnnENKzWUY5djFZlKWNFLkyZ1hzNW+4HF0ui45GjI="; + + meta = with lib; { + homepage = "https://github.com/grishy/go-avahi-cname"; + license = licenses.mit; + description = "Lightweight mDNS publisher of subdomains for your machine"; + mainProgram = "go-avahi-cname"; + maintainers = with maintainers; [ foo-dogsquared ]; + }; +}