nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit b1d0ef69149af97b7efc02073c6dea224b5a6f6f
parent 33aeaba2f25f69697f0143c4c2db196c0b0c5bc4
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Wed, 20 Apr 2022 19:31:23 +0300

Add nanodns

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/nanodns/default.nix | 25+++++++++++++++++++++++++
Apkgs/misc/nanodns/deps.nix | 65+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 91 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -296,6 +296,7 @@ lib.makeScope newScope ( miband4 = callPackage ./misc/miband4 { }; morse-talk = callPackage ./misc/morse-talk { }; musig = callPackage ./misc/musig { }; + nanodns = callPackage ./misc/nanodns { }; nmtree = callPackage ./misc/nmtree { }; objlab = callPackage ./misc/objlab { }; playonmac = callPackage ./misc/playonmac { }; diff --git a/pkgs/misc/nanodns/default.nix b/pkgs/misc/nanodns/default.nix @@ -0,0 +1,25 @@ +{ lib, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + pname = "nanodns"; + version = "2021-10-29"; + + src = fetchFromGitHub { + owner = "Sina-Ghaderi"; + repo = pname; + rev = "fb0c62f7123cb39c0e327ff1515536ce2ed6c3db"; + hash = "sha256-Paz59YJkwK0v9/e7NrqpQjx0r/iHMpSCLd2heHw8KlA="; + }; + + goPackagePath = "github.com/Sina-Ghaderi/nanodns"; + + goDeps = ./deps.nix; + + meta = with lib; { + description = "Simple dns forwarder/cache blocker server"; + inherit (src.meta) homepage; + license = licenses.free; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/misc/nanodns/deps.nix b/pkgs/misc/nanodns/deps.nix @@ -0,0 +1,65 @@ +[ + { + goPackagePath = "github.com/miekg/dns"; + fetch = { + type = "git"; + url = "https://github.com/miekg/dns"; + rev = "v1.1.48"; + sha256 = "sha256-FA4nYe0t6k8ZugvSYgZWXIXFbfjaBd2IzDew+pblpJI="; + }; + } + { + goPackagePath = "golang.org/x/net"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/net"; + rev = "1850ba15e1bead26ce105d30e15374864d8eff07"; + sha256 = "sha256-GUMZ+fwMlO8LPxcZbX3eARcjMN+VuSYJA/Lpl8s7ixY="; + }; + } + { + goPackagePath = "golang.org/x/sys"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/sys"; + rev = "33da011f77ade50ff5b6a6fb4a9a1e6d6b285809"; + sha256 = "sha256-mWg+AboQLFaoe09QqOpg8pIBPo63Blur0cvnizONQdc="; + }; + } + { + goPackagePath = "golang.org/x/tools"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/tools"; + rev = "48a2cc8a0dedac636c66bb5f095ad46073e0a288"; + sha256 = "sha256-pXQI4QhpIDJvNakvXrhBXP6PX2eftV0C9EEkO2bWWvQ="; + }; + } + { + goPackagePath = "golang.org/x/sync"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/sync"; + rev = "036812b2e83c0ddf193dd5a34e034151da389d09"; + sha256 = "sha256-qyBoAsnVWZyQM7UkJ573EjijMHK0q5mVoY/o4a8Agr4="; + }; + } + { + goPackagePath = "golang.org/x/xerrors"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/xerrors"; + rev = "2f41105eb62f341cfe208d06de4ee3bdd3a083da"; + sha256 = "sha256-yZNeG+jcarcw/aOFhrhxWWE20r0P+/VJF4i/0JQfv1c="; + }; + } + { + goPackagePath = "golang.org/x/mod"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/mod"; + rev = "v0.5.1"; + sha256 = "sha256-CThURfk/KKuPD1XesYauFLxnZH0RJXc7hCGpW4YDk4U="; + }; + } +]