nix build: Simplify build functions. Add Scala 2.11.0-M5