From 4d42ee02e76b50b35f45d7527520e6fd52091539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Thu, 5 Sep 2024 15:17:39 +0200 Subject: [PATCH] automatically run rust tests --- flake.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 56a3c44..7d3c0b2 100644 --- a/flake.nix +++ b/flake.nix @@ -57,13 +57,15 @@ gdb ]; }; - packages = { - rust-template = rustPkgs.workspace.rust-template {}; - }; + packages = pkgs.lib.mapAttrs (_: v: v {}) rustPkgs.workspace; nixosModules.default = import ./nixos { inherit inputs system; }; - hydraJobs = packages; + checks = pkgs.lib.mapAttrs (_: v: pkgs.rustBuilder.runTests v {}) rustPkgs.workspace; + hydraJobs = { + inherit packages checks; + }; + formatter = pkgs.alejandra; }); } # Trick renovate into working: "github:NixOS/nixpkgs/nixpkgs-unstable"