xin/overlays/tailscale.nix

33 lines
874 B
Nix
Raw Normal View History

let
2023-06-22 11:40:02 -06:00
version = "1.44.0";
fetchArgs = {
owner = "tailscale";
repo = "tailscale";
rev = "v${version}";
hash = "sha256-/SiQFkhVseLkjK7ePNzNyBs0r3XE3kHJ6CDTFjdCXec=";
};
vendorHash = "sha256-fgCrmtJs1svFz0Xn7iwLNrbBNlcO6V0yqGPMY0+V1VQ=";
ldflags = [
"-X tailscale.com/version.longStamp=${version}"
"-X tailscale.com/version.shortStamp=${version}"
];
2023-05-28 15:12:04 -06:00
2023-06-22 11:40:02 -06:00
tailscale = _: super: {
tailscale = super.tailscale.overrideAttrs (_: {
src = super.fetchFromGitHub fetchArgs;
inherit vendorHash ldflags version;
});
};
#tailscale = _: super: {
# tailscale = super.callPackage "${super.path}/pkgs/servers/tailscale" {
# buildGoModule = args:
# super.buildGo120Module (args // {
# src = super.fetchFromGitHub fetchArgs;
# inherit vendorHash ldflags version;
# });
# };
#};
in tailscale