Skip to content

Commit 0bff81b

Browse files
committed
Mention nix develop in readme
1 parent 60d277d commit 0bff81b

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ Likewise with Scala 3:
109109

110110
In Intellij, you may also set Scala version by changing the option `sbt -> sbt settings -> Open cross-compiled projects Scala 3 / Scala 2 projects as:`
111111

112+
Provided `flake.nix` can be used to set up the external dependencies necessary to build the project, such as sbt, JDK, coursier, etc:
113+
114+
```bash
115+
nix develop
116+
```
117+
112118
<!--- docs:start --->
113119

114120
# Talks

devops/.env.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export SCALA212=$(cat project/Deps.sc | grep 'val scala212 ' | sed -r 's/.*\"(.
99
export SCALA213=$(cat project/Deps.sc | grep 'val scala213 ' | sed -r 's/.*\"(.*)\".**/\1/')
1010
export SCALA3=$(cat project/Deps.sc | grep 'val scala300 ' | sed -r 's/.*\"(.*)\".**/\1/')
1111

12-
[[ -z "$SCALA_VERSION" ]] && echo "Missing SCALA_VERSION" && exit 1
12+
[[ -z "${SCALA_VERSION:-}" ]] && echo "Missing SCALA_VERSION. Define SCALA_VERSION" && exit 1
13+
[[ -z "${JAVA_VERSION:-}" ]] && echo "Missing JAVA_VERSION. Define JAVA_VERSION" && exit 1
1314

1415
case $SCALA_VERSION in
1516
2.11) SCALA_VERSION="$SCALA211" ;;

flake.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@
3737
export JDK21=${pkgs.jdk21_headless}
3838
export JDK_DEV=${pkgs.graalvm-ce}
3939
40-
rm -f ./.env || true
40+
rm ./.env/jdk || true
41+
rmdir ./.env || true
4142
mkdir -p ./.env
42-
ln -s ''${JDK_DEV} ./.env/jdk
43+
ln -s ''${JDK_DEV} ./.env/jdk || true
4344
'';
4445
};
4546
}

0 commit comments

Comments
 (0)