overlay: bump tailscale for stable hosts

This commit is contained in:
Aaron Bieber 2023-01-11 11:17:46 -07:00
parent 7b9d0b22d8
commit d98033da46
No known key found for this signature in database
2 changed files with 42 additions and 21 deletions

View File

@ -19,7 +19,7 @@ let
inherit pkgs; inherit pkgs;
inherit icbirc; inherit icbirc;
}); });
goModuleHost = "https://codeberg.org/qbit"; #"https://git.sr.ht/~qbit"; goModuleHost = "https://codeberg.org/qbit"; # "https://git.sr.ht/~qbit";
in { in {
_module.args.isUnstable = false; _module.args.isUnstable = false;

View File

@ -1,4 +1,25 @@
{ self, config, pkgs, lib, isUnstable, ... }: { { self, config, pkgs, lib, isUnstable, ... }:
let
tailscale = self: super: {
tailscale = super.callPackage "${super.path}/pkgs/servers/tailscale" {
buildGoModule = args:
super.buildGo119Module (args // rec {
version = "1.34.2";
src = super.fetchFromGitHub {
owner = "tailscale";
repo = "tailscale";
rev = "v${version}";
sha256 = "sha256-uFr7swB7AQLvjDg+1KBCQuoLkDw454+gVe+6/iD74LM=";
};
vendorSha256 = "sha256-//qhvzZzaAqfcj4HZIy6ZkGyfAwtRdf7ARaXI+trTe0=";
ldflags = [
"-X tailscale.com/version.Long=${version}"
"-X tailscale.com/version.Short=${version}"
];
});
};
};
in {
nixpkgs.overlays = if isUnstable then nixpkgs.overlays = if isUnstable then
[ [
(self: super: { (self: super: {
@ -13,27 +34,27 @@
}); });
}) })
] ]
else else [
[ tailscale
(self: super: { (self: super: {
matrix-synapse = super.matrix-synapse.overrideAttrs (old: rec { matrix-synapse = super.matrix-synapse.overrideAttrs (old: rec {
version = "1.74.0"; version = "1.74.0";
src = super.fetchFromGitHub { src = super.fetchFromGitHub {
owner = "matrix-org"; owner = "matrix-org";
repo = "synapse"; repo = "synapse";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-UsYodjykcLOgClHegqH598kPoGAI1Z8bLzV5LLE6yLg="; sha256 = "sha256-UsYodjykcLOgClHegqH598kPoGAI1Z8bLzV5LLE6yLg=";
}; };
cargoDeps = super.rustPlatform.fetchCargoTarball { cargoDeps = super.rustPlatform.fetchCargoTarball {
inherit (self) src; inherit (self) src;
name = "matrix-synapse-${version}"; name = "matrix-synapse-${version}";
sha256 = "sha256-XOW9DRUhGIs8x5tQ9l2A85sNv736uMmfC72f8FX3g/I="; sha256 = "sha256-XOW9DRUhGIs8x5tQ9l2A85sNv736uMmfC72f8FX3g/I=";
}; };
}); });
}) })
]; ];
} }
# Example Python dep overlay # Example Python dep overlay