init: project attempting to use scala-cli

This commit is contained in:
efim 2023-06-25 13:02:47 +00:00
parent 2727bbc4e6
commit 43ed6c456d
9 changed files with 19 additions and 9 deletions

View File

@ -1 +0,0 @@
/home/enefedov/Documents/personal/learning-htmx/.direnv/flake-profile.2814263

View File

@ -1 +0,0 @@

2
.envrc
View File

@ -1 +1 @@
use nix use flake

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.bsp/
.scala-build/
.direnv

View File

@ -5,11 +5,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1681202837, "lastModified": 1687171271,
"narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=", "narHash": "sha256-BJlq+ozK2B1sJDQXS3tzJM5a+oVZmi1q0FlBK/Xqv7M=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "cfacdce06f30d2b68473a46042957675eebb3401", "rev": "abfb11bd1aec8ced1c9bb9adfe68018230f4fb3c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -20,11 +20,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1683968890, "lastModified": 1687695299,
"narHash": "sha256-FuNtjMvT07cJydY5NRyRhIni/dEwkSkijmFEdsmqdkA=", "narHash": "sha256-j3IcDoAPulOmwcsCDb7RxBmDoCF0itDZ5e0sgM4rgWY=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ea11a3977f4cba013d8680667616be827c967ac0", "rev": "1fb6a92b2005e6d0d3b0c1a111093a41947d27f8",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -10,6 +10,7 @@
{ {
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
buildInputs = [ buildInputs = [
pkgs.scala-cli
pkgs.sbt pkgs.sbt
pkgs.scalafmt pkgs.scalafmt
]; ];

View File

View File

@ -0,0 +1,5 @@
object Hello {
def main(args: Array[String]): Unit = {
println(s"hello, i guess '${OtherObject.yoyo}'!!!")
}
}

View File

@ -0,0 +1,3 @@
object OtherObject {
val yoyo = "some message"
}