commit ce0d08fb11f5bb7c8cb9a13a0a298ee755ea0271 parent 26f1d9b1dc59fb706e2c3fabccde444d5dcbbb02 Author: Nikolay Korotkiy <sikmir@disroot.org> Date: Sat, 13 Apr 2024 23:45:25 +0400 Add ionscale Diffstat:
M | pkgs/default.nix | | | 1 | + |
A | pkgs/misc/ionscale/default.nix | | | 27 | +++++++++++++++++++++++++++ |
2 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -366,6 +366,7 @@ lib.makeScope newScope ( heapusage = callPackage ./misc/heapusage { }; how-to-use-pvs-studio-free = callPackage ./misc/pvs-studio/how-to-use-pvs-studio-free.nix { }; huami-token = callPackage ./misc/huami-token { }; + ionscale = callPackage ./misc/ionscale { }; ish = callPackage ./misc/ish { }; json-tui = callPackage ./misc/json-tui { }; lazyscraper = callPackage ./misc/lazyscraper { }; diff --git a/pkgs/misc/ionscale/default.nix b/pkgs/misc/ionscale/default.nix @@ -0,0 +1,27 @@ +{ lib, fetchFromGitHub, buildGoModule }: + +buildGoModule rec { + pname = "ionscale"; + version = "0.15.0"; + + src = fetchFromGitHub { + owner = "jsiebens"; + repo = "ionscale"; + rev = "v${version}"; + hash = "sha256-D6w5mHjlz+P+h0Q/8kk0PIDyyDfQxPsVka13ZTTDuv0="; + }; + + vendorHash = "sha256-YULdxUTzI+lwy9/wrSSc/rv3vwBkGkNc0b9GyUc9jQc="; + + ldflags = [ "-X github.com/jsiebens/ionscale/internal/version.Version=${version}" ]; + + doCheck = false; + + meta = with lib; { + description = "A lightweight implementation of a Tailscale control server"; + inherit (src.meta) homepage; + license = licenses.bsd3; + maintainers = [ maintainers.sikmir ]; + mainProgram = "ionscale"; + }; +}