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:
parent
1aa8b62ae3
commit
110328232d
5 changed files with 63 additions and 41 deletions
26
default.nix
26
default.nix
|
@ -71,8 +71,8 @@ let
|
|||
# To determine build targets, we walk through the depot tree and
|
||||
# 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?
|
||||
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;
|
||||
};
|
||||
|
||||
# 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.
|
||||
#
|
||||
# Note: To prevent infinite recursion, this *must* be a nested
|
||||
# attribute set (which does not have a __readTree attribute).
|
||||
ci.targets = readTree.gather eligible (self // {
|
||||
# remove the pipelines themselves from the set over which to
|
||||
# generate pipelines because that also leads to infinite
|
||||
# recursion.
|
||||
ops = self.ops // { pipelines = null; };
|
||||
});
|
||||
ci.targets = readTree.gather
|
||||
(t: (eligible t) && (!builtins.elem t self.ci.excluded))
|
||||
(self // {
|
||||
# remove the pipelines themselves from the set over which to
|
||||
# generate pipelines because that also leads to infinite
|
||||
# recursion.
|
||||
ops = self.ops // { pipelines = null; };
|
||||
});
|
||||
|
||||
# Derivation that gcroots all depot targets.
|
||||
ci.gcroot = with self.third_party.nixpkgs; writeText "depot-gcroot"
|
||||
|
|
14
third_party/overlays/haskell/default.nix
vendored
14
third_party/overlays/haskell/default.nix
vendored
|
@ -26,6 +26,20 @@ in
|
|||
{
|
||||
haskellPackages = super.haskellPackages.override {
|
||||
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
|
||||
dhall = dhall-source "dhall" hsSuper.dhall;
|
||||
dhall-nix = dhall-source "dhall-nix" hsSuper.dhall-nix;
|
||||
|
|
13
third_party/overlays/tvl.nix
vendored
13
third_party/overlays/tvl.nix
vendored
|
@ -39,22 +39,19 @@ depot.nix.readTree.drvTargets {
|
|||
nix = self.nix_2_3;
|
||||
nix_latest = super.nix;
|
||||
|
||||
# nixos-option now unfortunately depends on (at the time of writing) 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 only builds against Nix 2.15
|
||||
nixos-option = super.nixos-option.override {
|
||||
nix = self.nix_latest;
|
||||
nix = self.nixVersions.nix_2_15;
|
||||
};
|
||||
|
||||
# Too match telega in emacs-overlay or wherever
|
||||
tdlib = super.tdlib.overrideAttrs (_: {
|
||||
version = "1.8.15";
|
||||
version = "1.8.16";
|
||||
src = self.fetchFromGitHub {
|
||||
owner = "tdlib";
|
||||
repo = "td";
|
||||
rev = "64264b0f775a027fa9e0bf72051a8b2a5a2df071";
|
||||
sha256 = "1qs8pizap7glm98kjjliph1s7dn4fffwvs5ml8nv9d55dispjc4f";
|
||||
rev = "cde095db6c75827fe4bd237039574aad373ad96b";
|
||||
sha256 = "1zzacz2mhjmc36aqdc5v8a7zdi0mi7k8hnrnpj9gii061pm4vx4v";
|
||||
};
|
||||
});
|
||||
|
||||
|
|
42
third_party/sources/sources.json
vendored
42
third_party/sources/sources.json
vendored
|
@ -17,10 +17,10 @@
|
|||
"homepage": "",
|
||||
"owner": "nix-community",
|
||||
"repo": "emacs-overlay",
|
||||
"rev": "18e68ce41210cd4a00653f349285f9097c542fc4",
|
||||
"sha256": "00ard897bxsr26i7w1hdll3a31lw4qpj8ksm5qpcggvhl65666zy",
|
||||
"rev": "519c98cef1aa5901568266146d085d230d92952f",
|
||||
"sha256": "0dicqfs7092z1r847nj7cjjwnihpg6606kc6y5hrlqcd10ri8wyf",
|
||||
"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"
|
||||
},
|
||||
"home-manager": {
|
||||
|
@ -29,10 +29,10 @@
|
|||
"homepage": "https://nix-community.github.io/home-manager/",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "7b8d43fbaf8450c30caaed5eab876897d0af891b",
|
||||
"sha256": "1l72d4m3ra3n6ya1szzvmwxswmmhpqy090r9gh02227s9ppjqqv7",
|
||||
"rev": "958c06303f43cf0625694326b7f7e5475b1a2d5c",
|
||||
"sha256": "1xi5vnavngsn39lmxhg52pa8kk3yk0s9w4ki7z30fqimlwa3mq1h",
|
||||
"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"
|
||||
},
|
||||
"impermanence": {
|
||||
|
@ -53,10 +53,10 @@
|
|||
"homepage": "",
|
||||
"owner": "nmattia",
|
||||
"repo": "naersk",
|
||||
"rev": "d9a33d69a9c421d64c8d925428864e93be895dcc",
|
||||
"sha256": "1lhz5haibfnbxwir61mhymxfqfgs2q1nb4rk88va8bpv6j2zlpbv",
|
||||
"rev": "78789c30d64dea2396c9da516bbcc8db3a475207",
|
||||
"sha256": "018p479piqv30v71z8fpjvaj28y1c2hz9vqrfpda4xaw4ygahc99",
|
||||
"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"
|
||||
},
|
||||
"napalm": {
|
||||
|
@ -77,10 +77,10 @@
|
|||
"homepage": "",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "5a8e9243812ba528000995b294292d3b5e120947",
|
||||
"sha256": "0pmg0lsmvfsgaahinj35nrryvqjmlgd13badixdi0y54dn5ybbl9",
|
||||
"rev": "d680ded26da5cf104dd2735a51e88d2d8f487b4d",
|
||||
"sha256": "0xczslr40zy1wlg0ir8mwyyn5gz22i2f9dfd0vmgnk1664v4chky",
|
||||
"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"
|
||||
},
|
||||
"nixpkgs-stable": {
|
||||
|
@ -89,10 +89,10 @@
|
|||
"homepage": "",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "011567f35433879aae5024fc6ec53f2a0568a6c4",
|
||||
"sha256": "1a679r15qsyf821ad0fkqcdh7dz2szgqa348bcpcxbll81gp44j5",
|
||||
"rev": "475d5ae2c4cb87b904545bdb547af05681198fcc",
|
||||
"sha256": "0ixqpgp51flwhs5gd0jz3shj6ya0bkvj8fh024dz24v6zzvijj1i",
|
||||
"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"
|
||||
},
|
||||
"rust-overlay": {
|
||||
|
@ -101,10 +101,10 @@
|
|||
"homepage": "",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "ec7dc60e6c0f6c430433c908316b47b6638d0053",
|
||||
"sha256": "18j4lgc3i43m65y8dzwlswranygx5f5xi2llmv0hxa94x6xbdyp7",
|
||||
"rev": "603a1600324f9b4511d7ab5bdc38cb14ba8370a5",
|
||||
"sha256": "0sx37h3bxy956mg2jcy8nagdda0kgkzvw5dzm17abad7wzqg8yqg",
|
||||
"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"
|
||||
},
|
||||
"rustsec-advisory-db": {
|
||||
|
@ -113,10 +113,10 @@
|
|||
"homepage": "https://rustsec.org",
|
||||
"owner": "RustSec",
|
||||
"repo": "advisory-db",
|
||||
"rev": "15e3b1b0712d465c6b5ef12fdc2a1716ec73d84d",
|
||||
"sha256": "0b3q5l3q406in381v3mplznappd08gnz2hhx5907j7km1nz43zbx",
|
||||
"rev": "7600054d6c764c71f0b2a6f0b9f80b66c23b1e61",
|
||||
"sha256": "12h4l7hz6bkf12hxx8f33a2za0l1fysk63jys2vmdjdai91idprl",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,8 +36,6 @@ let
|
|||
]
|
||||
) [ "nix_tests" "nix_tests/notyetpassing" "tvix_tests" "tvix_tests/notyetpassing" ];
|
||||
|
||||
latestNixIs215 = lib.versionOlder nix_latest.version "2.16";
|
||||
|
||||
skippedLangTests = {
|
||||
# TODO(sterni): set up NIX_PATH in sandbox
|
||||
"eval-okay-search-path.nix" = true;
|
||||
|
@ -67,11 +65,14 @@ let
|
|||
# Cycle detection and formatting changed sometime after Nix 2.3
|
||||
"eval-okay-cycle-display-cpp-nix-2.13.nix" = [ nix ];
|
||||
# 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
|
||||
"eval-okay-readFileType.nix" = [ nix ];
|
||||
# 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
|
||||
# like C++ Nix test suite (using string replacement).
|
||||
|
|
Loading…
Reference in a new issue