chore(3p/sources): bump channels & overlays (2023-08-21)

Included changes:

* tvix/eval: enable some lang tests on nix_latest

  Nix 2.16 contains some breaking language changes which Tvix does
  not yet implement, but the existing tests for them are now passed by
  Nix 2.16 (but not yet by Tvix).

* tvix/eval: disable a lang test on nix_latest

  In Nix 2.17, the identifier formatting test fails because some
  behaviour changed. We have not investigated further yet.

* 3p/overlays: use version of ihp-hsx that works with GHC 9.4

  Originally from the separate cl/9185.

* top-level: introduce a mechanism to exclude build targets from CI in
  the top level. This fixes b/296.

* users/grfn: disable builds of xanthous (and dependents) until the
  CLs fixing its build are submitted

* 3p/overlays: build nixos-option against Nix 2.15, the only version
  with which it builds

* 3p/overlays: bump tdlib to 1.8.16

Change-Id: Ia377f39dbdb08ac45ff830a615e64babc091e5ee
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9125
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
This commit is contained in:
Vincent Ambo 2023-08-22 00:45:36 +03:00 committed by tazjin
parent 1aa8b62ae3
commit 110328232d
5 changed files with 63 additions and 41 deletions

View file

@ -71,8 +71,8 @@ let
# To determine build targets, we walk through the depot tree and # To determine build targets, we walk through the depot tree and
# fetch attributes that were imported by readTree and are buildable. # fetch attributes that were imported by readTree and are buildable.
# #
# Any build target that contains `meta.ci.skip = true` will be skipped. # Any build target that contains `meta.ci.skip = true` or is marked
# broken will be skipped.
# Is this tree node eligible for build inclusion? # Is this tree node eligible for build inclusion?
eligible = node: (node ? outPath) && !(node.meta.ci.skip or (node.meta.broken or false)); eligible = node: (node ? outPath) && !(node.meta.ci.skip or (node.meta.broken or false));
@ -103,16 +103,26 @@ readTree.fix (self: (readDepot {
filter = self.third_party.nixpkgs.lib.cleanSourceFilter; filter = self.third_party.nixpkgs.lib.cleanSourceFilter;
}; };
# Additionally targets can be excluded from CI by adding them to the
# list below.
ci.excluded = [
# xanthous and related targets are disabled until cl/9186 is submitted
self.users.grfn.xanthous
self.users.grfn.system.system.mugwumpSystem
];
# List of all buildable targets, for CI purposes. # List of all buildable targets, for CI purposes.
# #
# Note: To prevent infinite recursion, this *must* be a nested # Note: To prevent infinite recursion, this *must* be a nested
# attribute set (which does not have a __readTree attribute). # attribute set (which does not have a __readTree attribute).
ci.targets = readTree.gather eligible (self // { ci.targets = readTree.gather
# remove the pipelines themselves from the set over which to (t: (eligible t) && (!builtins.elem t self.ci.excluded))
# generate pipelines because that also leads to infinite (self // {
# recursion. # remove the pipelines themselves from the set over which to
ops = self.ops // { pipelines = null; }; # generate pipelines because that also leads to infinite
}); # recursion.
ops = self.ops // { pipelines = null; };
});
# Derivation that gcroots all depot targets. # Derivation that gcroots all depot targets.
ci.gcroot = with self.third_party.nixpkgs; writeText "depot-gcroot" ci.gcroot = with self.third_party.nixpkgs; writeText "depot-gcroot"

View file

@ -26,6 +26,20 @@ in
{ {
haskellPackages = super.haskellPackages.override { haskellPackages = super.haskellPackages.override {
overrides = hsSelf: hsSuper: { overrides = hsSelf: hsSuper: {
ihp-hsx = lib.pipe hsSuper.ihp-hsx [
(haskellLib.overrideSrc {
version = "1.1.0";
src = "${self.fetchFromGitHub {
owner = "digitallyinduced";
repo = "ihp";
rev = "b5d47963c998ccd779aa5c3d46484338fd621f0d";
sha256 = "sha256-M22W8VX4sRaeU2yVraR0S2t2VOwWGmoteD/M8TahdoE=";
}}/ihp-hsx";
})
haskellLib.doJailbreak
];
# TODO: this is to fix a bug in dhall-nix # TODO: this is to fix a bug in dhall-nix
dhall = dhall-source "dhall" hsSuper.dhall; dhall = dhall-source "dhall" hsSuper.dhall;
dhall-nix = dhall-source "dhall-nix" hsSuper.dhall-nix; dhall-nix = dhall-source "dhall-nix" hsSuper.dhall-nix;

View file

@ -39,22 +39,19 @@ depot.nix.readTree.drvTargets {
nix = self.nix_2_3; nix = self.nix_2_3;
nix_latest = super.nix; nix_latest = super.nix;
# nixos-option now unfortunately depends on (at the time of writing) Nix 2.15 # nixos-option only builds against Nix 2.15
# instead of Nix 2.3 as before. The intention seems to be to keep it in sync
# with the latest Nix and it uses unstable interfaces of Nix (the libraries).
# TODO(sterni): can we link it statically and avoid a second Nix store path?
nixos-option = super.nixos-option.override { nixos-option = super.nixos-option.override {
nix = self.nix_latest; nix = self.nixVersions.nix_2_15;
}; };
# Too match telega in emacs-overlay or wherever # Too match telega in emacs-overlay or wherever
tdlib = super.tdlib.overrideAttrs (_: { tdlib = super.tdlib.overrideAttrs (_: {
version = "1.8.15"; version = "1.8.16";
src = self.fetchFromGitHub { src = self.fetchFromGitHub {
owner = "tdlib"; owner = "tdlib";
repo = "td"; repo = "td";
rev = "64264b0f775a027fa9e0bf72051a8b2a5a2df071"; rev = "cde095db6c75827fe4bd237039574aad373ad96b";
sha256 = "1qs8pizap7glm98kjjliph1s7dn4fffwvs5ml8nv9d55dispjc4f"; sha256 = "1zzacz2mhjmc36aqdc5v8a7zdi0mi7k8hnrnpj9gii061pm4vx4v";
}; };
}); });

View file

@ -17,10 +17,10 @@
"homepage": "", "homepage": "",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "18e68ce41210cd4a00653f349285f9097c542fc4", "rev": "519c98cef1aa5901568266146d085d230d92952f",
"sha256": "00ard897bxsr26i7w1hdll3a31lw4qpj8ksm5qpcggvhl65666zy", "sha256": "0dicqfs7092z1r847nj7cjjwnihpg6606kc6y5hrlqcd10ri8wyf",
"type": "tarball", "type": "tarball",
"url": "https://github.com/nix-community/emacs-overlay/archive/18e68ce41210cd4a00653f349285f9097c542fc4.tar.gz", "url": "https://github.com/nix-community/emacs-overlay/archive/519c98cef1aa5901568266146d085d230d92952f.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"home-manager": { "home-manager": {
@ -29,10 +29,10 @@
"homepage": "https://nix-community.github.io/home-manager/", "homepage": "https://nix-community.github.io/home-manager/",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "7b8d43fbaf8450c30caaed5eab876897d0af891b", "rev": "958c06303f43cf0625694326b7f7e5475b1a2d5c",
"sha256": "1l72d4m3ra3n6ya1szzvmwxswmmhpqy090r9gh02227s9ppjqqv7", "sha256": "1xi5vnavngsn39lmxhg52pa8kk3yk0s9w4ki7z30fqimlwa3mq1h",
"type": "tarball", "type": "tarball",
"url": "https://github.com/nix-community/home-manager/archive/7b8d43fbaf8450c30caaed5eab876897d0af891b.tar.gz", "url": "https://github.com/nix-community/home-manager/archive/958c06303f43cf0625694326b7f7e5475b1a2d5c.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"impermanence": { "impermanence": {
@ -53,10 +53,10 @@
"homepage": "", "homepage": "",
"owner": "nmattia", "owner": "nmattia",
"repo": "naersk", "repo": "naersk",
"rev": "d9a33d69a9c421d64c8d925428864e93be895dcc", "rev": "78789c30d64dea2396c9da516bbcc8db3a475207",
"sha256": "1lhz5haibfnbxwir61mhymxfqfgs2q1nb4rk88va8bpv6j2zlpbv", "sha256": "018p479piqv30v71z8fpjvaj28y1c2hz9vqrfpda4xaw4ygahc99",
"type": "tarball", "type": "tarball",
"url": "https://github.com/nmattia/naersk/archive/d9a33d69a9c421d64c8d925428864e93be895dcc.tar.gz", "url": "https://github.com/nmattia/naersk/archive/78789c30d64dea2396c9da516bbcc8db3a475207.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"napalm": { "napalm": {
@ -77,10 +77,10 @@
"homepage": "", "homepage": "",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5a8e9243812ba528000995b294292d3b5e120947", "rev": "d680ded26da5cf104dd2735a51e88d2d8f487b4d",
"sha256": "0pmg0lsmvfsgaahinj35nrryvqjmlgd13badixdi0y54dn5ybbl9", "sha256": "0xczslr40zy1wlg0ir8mwyyn5gz22i2f9dfd0vmgnk1664v4chky",
"type": "tarball", "type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/5a8e9243812ba528000995b294292d3b5e120947.tar.gz", "url": "https://github.com/NixOS/nixpkgs/archive/d680ded26da5cf104dd2735a51e88d2d8f487b4d.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
@ -89,10 +89,10 @@
"homepage": "", "homepage": "",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "011567f35433879aae5024fc6ec53f2a0568a6c4", "rev": "475d5ae2c4cb87b904545bdb547af05681198fcc",
"sha256": "1a679r15qsyf821ad0fkqcdh7dz2szgqa348bcpcxbll81gp44j5", "sha256": "0ixqpgp51flwhs5gd0jz3shj6ya0bkvj8fh024dz24v6zzvijj1i",
"type": "tarball", "type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/011567f35433879aae5024fc6ec53f2a0568a6c4.tar.gz", "url": "https://github.com/NixOS/nixpkgs/archive/475d5ae2c4cb87b904545bdb547af05681198fcc.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"rust-overlay": { "rust-overlay": {
@ -101,10 +101,10 @@
"homepage": "", "homepage": "",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "ec7dc60e6c0f6c430433c908316b47b6638d0053", "rev": "603a1600324f9b4511d7ab5bdc38cb14ba8370a5",
"sha256": "18j4lgc3i43m65y8dzwlswranygx5f5xi2llmv0hxa94x6xbdyp7", "sha256": "0sx37h3bxy956mg2jcy8nagdda0kgkzvw5dzm17abad7wzqg8yqg",
"type": "tarball", "type": "tarball",
"url": "https://github.com/oxalica/rust-overlay/archive/ec7dc60e6c0f6c430433c908316b47b6638d0053.tar.gz", "url": "https://github.com/oxalica/rust-overlay/archive/603a1600324f9b4511d7ab5bdc38cb14ba8370a5.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"rustsec-advisory-db": { "rustsec-advisory-db": {
@ -113,10 +113,10 @@
"homepage": "https://rustsec.org", "homepage": "https://rustsec.org",
"owner": "RustSec", "owner": "RustSec",
"repo": "advisory-db", "repo": "advisory-db",
"rev": "15e3b1b0712d465c6b5ef12fdc2a1716ec73d84d", "rev": "7600054d6c764c71f0b2a6f0b9f80b66c23b1e61",
"sha256": "0b3q5l3q406in381v3mplznappd08gnz2hhx5907j7km1nz43zbx", "sha256": "12h4l7hz6bkf12hxx8f33a2za0l1fysk63jys2vmdjdai91idprl",
"type": "tarball", "type": "tarball",
"url": "https://github.com/RustSec/advisory-db/archive/15e3b1b0712d465c6b5ef12fdc2a1716ec73d84d.tar.gz", "url": "https://github.com/RustSec/advisory-db/archive/7600054d6c764c71f0b2a6f0b9f80b66c23b1e61.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
} }
} }

View file

@ -36,8 +36,6 @@ let
] ]
) [ "nix_tests" "nix_tests/notyetpassing" "tvix_tests" "tvix_tests/notyetpassing" ]; ) [ "nix_tests" "nix_tests/notyetpassing" "tvix_tests" "tvix_tests/notyetpassing" ];
latestNixIs215 = lib.versionOlder nix_latest.version "2.16";
skippedLangTests = { skippedLangTests = {
# TODO(sterni): set up NIX_PATH in sandbox # TODO(sterni): set up NIX_PATH in sandbox
"eval-okay-search-path.nix" = true; "eval-okay-search-path.nix" = true;
@ -67,11 +65,14 @@ let
# Cycle detection and formatting changed sometime after Nix 2.3 # Cycle detection and formatting changed sometime after Nix 2.3
"eval-okay-cycle-display-cpp-nix-2.13.nix" = [ nix ]; "eval-okay-cycle-display-cpp-nix-2.13.nix" = [ nix ];
# builtins.replaceStrings becomes lazier in Nix 2.16 # builtins.replaceStrings becomes lazier in Nix 2.16
"eval-okay-replacestrings.nix" = [ nix (assert latestNixIs215; nix_latest) ]; "eval-okay-replacestrings.nix" = [ nix ];
# builtins.readFileType is added in Nix 2.15 # builtins.readFileType is added in Nix 2.15
"eval-okay-readFileType.nix" = [ nix ]; "eval-okay-readFileType.nix" = [ nix ];
# builtins.fromTOML gains support for timestamps in Nix 2.16 # builtins.fromTOML gains support for timestamps in Nix 2.16
"eval-okay-fromTOML-timestamps.nix" = [ nix (assert latestNixIs215; nix_latest) ]; "eval-okay-fromTOML-timestamps.nix" = [ nix ];
# identifier formatting seems to have changed in Nix 2.17
# TODO: figure out why, this is just to get the bump in cl/9125 working.
"eval-okay-identifier-formatting.nix" = [ nix_latest ];
# TODO(sterni): support diffing working directory and home relative paths # TODO(sterni): support diffing working directory and home relative paths
# like C++ Nix test suite (using string replacement). # like C++ Nix test suite (using string replacement).