From 488df158cf23b31493c0d5c25fbaa338e361de1d Mon Sep 17 00:00:00 2001 From: NiklasVousten <24965952+NiklasVousten@users.noreply.github.com> Date: Thu, 12 Sep 2024 16:37:46 +0200 Subject: [PATCH] crab-hole: init at 0.1.9 --- pkgs/by-name/cr/crab-hole/package.nix | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pkgs/by-name/cr/crab-hole/package.nix diff --git a/pkgs/by-name/cr/crab-hole/package.nix b/pkgs/by-name/cr/crab-hole/package.nix new file mode 100644 index 0000000000000..ec529d1a108fb --- /dev/null +++ b/pkgs/by-name/cr/crab-hole/package.nix @@ -0,0 +1,30 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, +}: + +rustPlatform.buildRustPackage rec { + pname = "crab-hole"; + version = "0.1.9-unstable-2024-09-05"; + + src = fetchFromGitHub { + owner = "LuckyTurtleDev"; + repo = pname; + rev = "259b8a00e2a672ed4a4d09ad660c88b06c5b2a6b"; # Version 0.1.9 + fixed warning + hash = "sha256-N/jfNC55WcbhZtmNfPy9oszntmlz8IhDgitNOaKCdI4="; + }; + + cargoHash = "sha256-B3FSKV7fVWdZ8r53fUtqZV7tyVVsP9CzwvoDCqfR42M="; + + meta = { + description = "Pi-Hole clone written in rust using hickory-dns/trust-dns"; + homepage = "https://github.com/LuckyTurtleDev/crab-hole"; + license = lib.licenses.agpl3Plus; + mainProgram = "crab-hole"; + maintainers = [ + lib.maintainers.NiklasVousten + ]; + platforms = lib.platforms.all; + }; +}