Skip to content

Commit

Permalink
nix env/direnv
Browse files Browse the repository at this point in the history
  • Loading branch information
pshirshov committed Jan 8, 2025
1 parent c7c96c3 commit 9fd3d08
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations.*

import scala.sys.process._
lazy val refreshFlakeTask = taskKey[Unit]("Refresh flake.nix")
lazy val isMacOS: Boolean = System.getProperty("os.name").toLowerCase.contains("mac")

ThisBuild / scalaVersion := "2.13.15"

Expand Down Expand Up @@ -76,6 +77,10 @@ lazy val root = (project in file("."))
"--enable-http",
"-march=compatibility"
),
graalVMNativeImageOptions ++= {
if (isMacOS) Seq("-H:CCompilerOption=-mmacosx-version-min=11.0")
else Seq.empty
},
run / fork := true,
scalacOptions ++= Seq(
s"-Xmacro-settings:product-name=${name.value}",
Expand Down

0 comments on commit 9fd3d08

Please sign in to comment.