Skip to content
Snippets Groups Projects
Verified Commit e9673bea authored by v-lafeychine's avatar v-lafeychine
Browse files

Switch to Scala Native + Add every dependencies for SDL

parent 4f2b86f8
No related branches found
No related tags found
1 merge request!4Resolve "Found graphics module"
name := "prog-2"
scalaVersion := "3.1.1"
enablePlugins(ScalaNativePlugin)
nativeCompileOptions ++= Seq("-stdlib=libc++")
nativeLinkingOptions ++= Seq("-fuse-ld=lld")
nativeMode := "release-fast"
nativeLTO := "thin"
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest-funsuite" % "3.2.11" % "test",
"org.scala-lang.modules" %% "scala-swing" % "3.0.0"
"org.scalatest" %% "scalatest-funsuite" % "3.2.11" % "test",
"org.scala-lang.modules" %% "scala-swing" % "3.0.0"
)
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.1")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.3")
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
llvmPackages = llvmPackages_13;
stdenv = llvmPackages.libcxxStdenv;
in stdenv.mkDerivation (rec {
name = "prog-2";
buildInputs = [ llvmPackages.lld sbt SDL2 which ];
LD_LIBRARY_PATH =
lib.makeLibraryPath [ llvmPackages.libcxx llvmPackages.libcxxabi SDL2 ];
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment