From 369cc8e26c24764d7095b9686d3254914c340579 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Wed, 3 Jul 2024 11:29:57 +0200 Subject: [PATCH] dnspyre: init at 3.3.1 --- flake.nix | 1 + pkgs/dnspyre/default.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/dnspyre/default.nix diff --git a/flake.nix b/flake.nix index 2ec8892..6baa6ed 100644 --- a/flake.nix +++ b/flake.nix @@ -270,6 +270,7 @@ packages = { coredns = pkgs.callPackage ./pkgs/coredns { }; + dnspyre = pkgs.callPackage ./pkgs/dnspyre { }; git-repo-go = pkgs.callPackage ./pkgs/git-repo-go { }; gitu = pkgs.callPackage ./pkgs/gitu { }; headscale-ui = pkgs.callPackage ./pkgs/headscale-ui { }; diff --git a/pkgs/dnspyre/default.nix b/pkgs/dnspyre/default.nix new file mode 100644 index 0000000..e5b98ed --- /dev/null +++ b/pkgs/dnspyre/default.nix @@ -0,0 +1,30 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + system, +}: + +buildGoModule rec { + pname = "dnspyre"; + version = "3.3.1"; + + src = fetchFromGitHub { + owner = "Tantalor93"; + repo = "dnspyre"; + rev = "v${version}"; + hash = "sha256-lz175AijiF3GXVV6RqAPI/W5rKKQLNwF80One89l3A4="; + }; + + vendorHash = "sha256-EfsjJKhZp8Dz1EZz0K8iZ4zjsJxV+O/QXwrDSsx5bzU="; + + ldflags = [ "-X=github.com/tantalor93/dnspyre/v3/cmd.Version=${version}-${system}" ]; + + meta = with lib; { + description = "CLI tool for a high QPS DNS benchmark"; + homepage = "https://github.com/Tantalor93/dnspyre"; + license = licenses.mit; + maintainers = with maintainers; [ ]; + mainProgram = "dnspyre"; + }; +}