mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-23 16:32:23 +03:00
14 lines
214 B
Nix
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
|
||
|
''
|