We could also introduce nixos style

  executables.krita.checks."--help" = true;
  executables.krita.checks.exists = true;

test -x $out/bin/x
test -x $out/bin/y

Is "duplicate testing code"

  for prog in x y; do
    $out/bin/$prog
  done

makes it harder to debug what's going on, because shell script will
exit at line foo - its still simple enough

for prog in x y; do
  $out/bin/$prog || { echo "prog $prog is missing"; exit 1 }
done

is that much code that its worth moving into setup.sh IMHO
which is why I'm asking - because documentation purpose could be helpful
as well.

If in doubt - be simple - but version is best ? ..

For the time beeing I'll keep as is - after all I'm human, the next time
I'll know where to look at if krita is missing.

Marc Weber
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to