crane/checks/smoke.nix
2022-01-07 17:56:12 -08:00

14 lines
214 B
Nix

{ runCommand
}:
bins: drv:
let
testList = map (b: "${drv}/bin/${b}") bins;
tests = builtins.concatStringsSep "\n" testList;
in
runCommand "smoke-${drv.name}" { } ''
# does it run?
${tests}
touch $out
''