Skip to content

Commit 5032f62

Browse files
Verify the development compiler in Nix CI
1 parent 07669dc commit 5032f62

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

‎flake.nix‎

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,29 @@
6262
];
6363
};
6464
releaseFor = system: import ./nix/release.nix { pkgs = pkgsFor system; };
65+
# Keep in sync with the nightly pinned in .github/workflows.
66+
developmentCompilerFor = system: (pkgsFor system).rocpkgs."nightly-2026-11-13-03dce41";
6567
in
6668
{
6769
formatter = forAllSystems (system: (pkgsFor system).nixfmt);
6870

6971
packages = forAllSystems (system: (releaseFor system).packages);
70-
checks = forAllSystems (system: (releaseFor system).checks);
72+
checks = forAllSystems (
73+
system:
74+
let
75+
pkgs = pkgsFor system;
76+
compiler = developmentCompilerFor system;
77+
in
78+
(releaseFor system).checks
79+
// {
80+
development-compiler = pkgs.runCommand "basic-cli-development-compiler" {
81+
nativeBuildInputs = [ compiler ];
82+
} ''
83+
test "$(roc version)" = "Roc compiler version ${compiler.version}"
84+
touch "$out"
85+
'';
86+
}
87+
);
7188

7289
devShells = forAllSystems (
7390
system:
@@ -80,8 +97,7 @@
8097
{
8198
default = pkgs.mkShell {
8299
packages = [
83-
# Keep in sync with the nightly pinned in .github/workflows.
84-
pkgs.rocpkgs."nightly-2026-11-13-03dce41"
100+
(developmentCompilerFor system)
85101
pkgs.python3
86102
rustToolchain
87103
pkgs.simple-http-server

0 commit comments

Comments
 (0)