From 9486eba5b89f1671abea8d6152bd6bbfcaa36c80 Mon Sep 17 00:00:00 2001 From: Eric Rodrigues Pires Date: Thu, 25 Dec 2025 11:05:37 -0300 Subject: [PATCH] Add latest toolchain and testing to Nix Flake --- .config/nextest.toml | 1 + flake.nix | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .config/nextest.toml diff --git a/.config/nextest.toml b/.config/nextest.toml new file mode 100644 index 0000000..832d40c --- /dev/null +++ b/.config/nextest.toml @@ -0,0 +1 @@ +[profile.nix] diff --git a/flake.nix b/flake.nix index 759e8b6..184d798 100644 --- a/flake.nix +++ b/flake.nix @@ -69,8 +69,12 @@ (craneLib.fileset.commonCargoSources ./tracing_duper) (craneLib.fileset.commonCargoSources ./tree-sitter-duper) (lib.fileset.fileFilter (file: file.hasExt "md") ./.) + ./.config ./.cargo/config.toml + ./duper/src/visitor/snapshots + ./duper/src/serde/snapshots ./duperfmt/src/duper.scm + ./duperfmt/src/snapshots ./duperq/tests/data ./duper_uniffi/src/duper.udl ./tree-sitter-duper/src @@ -134,7 +138,7 @@ }) // { meta = { - description = "The official Duper formatting library and CLI"; + description = "Official Duper formatting library and CLI"; homepage = "https://duper.dev.br"; license = lib.licenses.mit; mainProgram = "sandhole"; @@ -160,7 +164,7 @@ }) // { meta = { - description = "The official Duper language server, with auto-formatting and diagnostics"; + description = "Official Duper language server, with auto-formatting and diagnostics"; homepage = "https://duper.dev.br"; license = lib.licenses.mit; mainProgram = "sandhole"; @@ -190,6 +194,14 @@ inherit cargoArtifacts; } ); + + duper-test = craneLib.cargoNextest ( + commonArgs + // { + inherit cargoArtifacts; + cargoNextestExtraArgs = "-P nix"; + } + ); }; devShells.default = craneLib.devShell { @@ -197,6 +209,7 @@ packages = [ pkgs.binaryen + pkgs.cargo-insta cargo-rail pkgs.dotnet-sdk_8 pkgs.jdk21_headless -- knotmirror 0.0.1