mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-27 10:47:35 +00:00
flake.nix: rename package to just "tailscale".
There is no unstability inherent in this package, it's just unstable if you choose to import the flake at the main branch. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
7bfb9999ee
commit
c86d9f2ab1
16
flake.nix
16
flake.nix
@ -91,10 +91,10 @@
|
|||||||
# or the empty string when building from a local checkout of the
|
# or the empty string when building from a local checkout of the
|
||||||
# tailscale repo.
|
# tailscale repo.
|
||||||
tailscaleRev = if builtins.hasAttr "rev" self then self.rev else "";
|
tailscaleRev = if builtins.hasAttr "rev" self then self.rev else "";
|
||||||
# tailscaleUnstable takes a nixpkgs package set, and builds
|
# tailscale takes a nixpkgs package set, and builds Tailscale from
|
||||||
# Tailscale from the same commit as this flake. IOW, it provides
|
# the same commit as this flake. IOW, it provides "tailscale built
|
||||||
# "tailscale built from HEAD", where HEAD is "whatever commit you
|
# from HEAD", where HEAD is "whatever commit you imported the
|
||||||
# imported the flake at".
|
# flake at".
|
||||||
#
|
#
|
||||||
# This is currently unfortunately brittle, because we have to
|
# This is currently unfortunately brittle, because we have to
|
||||||
# specify vendorSha256, and that sha changes any time we alter
|
# specify vendorSha256, and that sha changes any time we alter
|
||||||
@ -108,8 +108,8 @@
|
|||||||
# So really, this flake is for tailscale devs to dogfood with, if
|
# So really, this flake is for tailscale devs to dogfood with, if
|
||||||
# you're an end user you should be prepared for this flake to not
|
# you're an end user you should be prepared for this flake to not
|
||||||
# build periodically.
|
# build periodically.
|
||||||
tailscaleUnstable = pkgs: pkgs.buildGo119Module rec {
|
tailscale = pkgs: pkgs.buildGo119Module rec {
|
||||||
name = "tailscale-unstable";
|
name = "tailscale";
|
||||||
|
|
||||||
src = ./.;
|
src = ./.;
|
||||||
vendorSha256 = fileContents ./go.mod.sri;
|
vendorSha256 = fileContents ./go.mod.sri;
|
||||||
@ -133,11 +133,11 @@
|
|||||||
flakeForSystem = nixpkgs: system: let
|
flakeForSystem = nixpkgs: system: let
|
||||||
upstreamPkgs = nixpkgs.legacyPackages.${system};
|
upstreamPkgs = nixpkgs.legacyPackages.${system};
|
||||||
pkgs = pkgsWithTailscaleGo upstreamPkgs;
|
pkgs = pkgsWithTailscaleGo upstreamPkgs;
|
||||||
ts = tailscaleUnstable pkgs;
|
ts = tailscale pkgs;
|
||||||
in {
|
in {
|
||||||
packages = {
|
packages = {
|
||||||
tailscale-go = pkgs.tailscale-go;
|
tailscale-go = pkgs.tailscale-go;
|
||||||
tailscale-unstable = ts;
|
tailscale = ts;
|
||||||
};
|
};
|
||||||
devShell = pkgs.mkShell {
|
devShell = pkgs.mkShell {
|
||||||
packages = with upstreamPkgs; [
|
packages = with upstreamPkgs; [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user