Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross compile support #10

Open
charleso opened this issue Aug 10, 2014 · 0 comments
Open

Cross compile support #10

charleso opened this issue Aug 10, 2014 · 0 comments

Comments

@charleso
Copy link
Owner

Currently the plugin will generate the relevant dependencies for the select version of Scala.

We need to respect the cross-compile settings in SBT and generate multiple attributes for each module and make it explicit.

{ sbt ? import ../sbt.nix {}, deps ? import ../deps.nix { inherit sbt; } }:
let
  hello-bar = import ../bar { inherit sbt; };
in {
2_11 = sbt.mkDerivation {
  pname = "hello-foo";
  scalaVersion = sbt.scala_2_11;
  sources = [ ./src/main/scala ./src/main/scala-2.11 ]
  modules = [ hello-bar ];
};
2_10 = sbt.mkDerivation {
  pname = "hello-foo-2_10";
  sources = [ ./src/main/scala ./src/main/scala-2.10 ]
  scalaVersion = sbt.scala_2_10;
  modules = [ hello-bar ];
};
}

And the same again in the top-level aggregate project.

If there's a way to avoid some/all of that duplication that would be awesome. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant