From 59cfa1be326b41779e184b663df64e8c624f6033 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 16 Sep 2024 08:26:07 +0200 Subject: [PATCH] Use mdsh during nix flake check --- flake.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index d4b062c..503f609 100644 --- a/flake.nix +++ b/flake.nix @@ -7,7 +7,7 @@ inputs.flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"; outputs = - { nixpkgs, flake-utils, nix-ros-overlay, ... } @ inputs: + { self, nixpkgs, flake-utils, nix-ros-overlay, ... } @ inputs: flake-utils.lib.eachDefaultSystem ( system: let @@ -95,6 +95,11 @@ default = ros2nix; inherit rosdistro rosdep-cache rosdep ros2nix; }; + checks = { + mdsh = pkgs.runCommandNoCC "mdsh" { + nativeBuildInputs = [ ros2nix ]; + } "cd ${self}; ${pkgs.mdsh}/bin/mdsh --frozen"; + }; } ); }