xin/overlays/tailscale.nix

24 lines
744 B
Nix
Raw Normal View History

let
tailscale = self: super: {
tailscale = super.callPackage "${super.path}/pkgs/servers/tailscale" {
buildGoModule = args:
2023-03-14 15:15:39 -06:00
super.buildGo120Module (args // rec {
2023-03-20 09:51:51 -06:00
version = "1.38.1";
src = super.fetchFromGitHub {
owner = "tailscale";
repo = "tailscale";
rev = "v${version}";
2023-03-20 09:51:51 -06:00
hash = "sha256-2VTYZhC/U32fzEJCxkCB35IqQBALKXQA23SvhY57lSU=";
};
2023-03-14 15:15:39 -06:00
vendorHash = "sha256-LIvaxSo+4LuHUk8DIZ27IaRQwaDnjW6Jwm5AEc/V95A=";
vendorSha256 = "_unset";
ldflags = [
2023-03-20 08:58:28 -06:00
"-X tailscale.com/version.longStamp=${version}"
"-X tailscale.com/version.shortStamp=${version}"
];
});
};
};
in tailscale