1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-08-10 13:46:46 +02:00

flake: add hi as cli in dev shell

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2025-06-19 12:57:13 +02:00
parent c2190f9f9a
commit 08de6a50e7
No known key found for this signature in database

View File

@ -19,6 +19,7 @@
overlay = _: prev: let
pkgs = nixpkgs.legacyPackages.${prev.system};
buildGo = pkgs.buildGo124Module;
vendorHash = "sha256-Gv6WLTBLr+nNwEqWhoCtpk+mmV50kzmizWNhNABT3NA=";
in {
headscale = buildGo {
pname = "headscale";
@ -30,7 +31,7 @@
# When updating go.mod or go.sum, a new sha will need to be calculated,
# update this if you have a mismatch after doing a change to those files.
vendorHash = "sha256-8nRaQNwUDbHkp3q54R6eLDh1GkfwBlh4b9w0IkNj2sY=";
inherit vendorHash;
subPackages = ["cmd/headscale"];
@ -42,6 +43,17 @@
];
};
hi = buildGo {
pname = "hi";
version = headscaleVersion;
src = pkgs.lib.cleanSource self;
checkFlags = ["-short"];
inherit vendorHash;
subPackages = ["cmd/hi"];
};
protoc-gen-grpc-gateway = buildGo rec {
pname = "grpc-gateway";
version = "2.24.0";
@ -144,6 +156,9 @@
buf
clang-tools # clang-format
protobuf-language-server
# Add hi to make it even easier to use ci runner.
hi
];
# Add entry to build a docker image with headscale