Use mdsh during nix flake check

This commit is contained in:
Michal Sojka 2024-09-16 08:26:07 +02:00
parent c4bc177658
commit 59cfa1be32

View file

@ -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";
};
}
);
}