2023-02-02 09:47:29 -07:00
|
|
|
let
|
2023-10-30 13:08:33 -06:00
|
|
|
version = "1.52.0";
|
2023-06-22 11:40:02 -06:00
|
|
|
fetchArgs = {
|
|
|
|
owner = "tailscale";
|
|
|
|
repo = "tailscale";
|
|
|
|
rev = "v${version}";
|
2023-10-30 13:08:33 -06:00
|
|
|
hash = "sha256-mvsDM1kOLP/1LbTzmojquEF8HGy6Kb2cqJu7EnxEHPU=";
|
2023-06-22 11:40:02 -06:00
|
|
|
};
|
2023-10-30 13:08:33 -06:00
|
|
|
vendorHash = "sha256-WGZkpffwe4I8FewdBHXGaLbKQP/kHr7UF2lCXBTcNb4=";
|
2023-06-22 11:40:02 -06:00
|
|
|
ldflags = [
|
|
|
|
"-X tailscale.com/version.longStamp=${version}"
|
|
|
|
"-X tailscale.com/version.shortStamp=${version}"
|
|
|
|
];
|
2023-05-28 15:12:04 -06:00
|
|
|
|
2023-06-24 07:20:11 -06:00
|
|
|
#tailscale = _: super: {
|
2023-10-30 13:08:33 -06:00
|
|
|
# tailscale = super.tailscale.overrideAttrs (_: {
|
|
|
|
# src = super.fetchFromGitHub fetchArgs;
|
|
|
|
# inherit vendorHash ldflags version;
|
|
|
|
# });
|
2023-06-24 07:20:11 -06:00
|
|
|
#};
|
2023-10-30 13:08:33 -06:00
|
|
|
tailscale = _: super: {
|
|
|
|
tailscale = super.callPackage "${super.path}/pkgs/servers/tailscale" {
|
|
|
|
buildGoModule = args:
|
|
|
|
super.buildGo121Module (args // {
|
|
|
|
src = super.fetchFromGitHub fetchArgs;
|
|
|
|
inherit vendorHash ldflags version;
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
2023-07-11 09:12:50 -06:00
|
|
|
in
|
2023-09-12 08:44:05 -06:00
|
|
|
tailscale
|