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

Nix definition and library updates #399

Merged
merged 2 commits into from
Nov 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
use flake
layout node
eval "$shellHook"
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
scala: [2.11.12, 2.12.17, 2.13.10, 3.2.0]
scala: [2.11.12, 2.12.17, 2.13.10, 3.2.1]
java: [temurin@8, temurin@17]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -149,12 +149,12 @@ jobs:
tar xf targets.tar
rm targets.tar

- name: Download target directories (3.2.0)
- name: Download target directories (3.2.1)
uses: actions/download-artifact@v2
with:
name: target-${{ matrix.os }}-3.2.0-${{ matrix.java }}
name: target-${{ matrix.os }}-3.2.1-${{ matrix.java }}

- name: Inflate target directories (3.2.0)
- name: Inflate target directories (3.2.1)
run: |
tar xf targets.tar
rm targets.tar
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ target/
.idea
metals.sbt
node_modules/
.direnv/
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.5.9"
version = "3.6.1"
style = default

maxColumn = 100
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import locales._
import sbt.Keys._
import sbtcrossproject.CrossPlugin.autoImport.{ CrossType, crossProject }

lazy val cldrApiVersion = "3.1.0"
lazy val cldrApiVersion = "4.0.0"

Global / onChangedBuildSource := ReloadOnSourceChanges

lazy val scalaVersion213 = "2.13.10"
lazy val scalaVersion3 = "3.2.0"
lazy val scalaVersion3 = "3.2.1"
ThisBuild / scalaVersion := scalaVersion213
ThisBuild / crossScalaVersions := Seq("2.11.12", "2.12.17", scalaVersion213, scalaVersion3)

Expand Down
4 changes: 2 additions & 2 deletions core/native/src/main/scala/locales/NormalizerImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ private object NormalizerImpl {
@link("utf8proc")
@extern
private object utf8proc {
def utf8proc_NFD(str: CString): CString = extern
def utf8proc_NFC(str: CString): CString = extern
def utf8proc_NFD(str: CString): CString = extern
def utf8proc_NFC(str: CString): CString = extern
def utf8proc_NFKD(str: CString): CString = extern
def utf8proc_NFKC(str: CString): CString = extern
}
4 changes: 2 additions & 2 deletions core/shared/src/main/scala/java/text/NumberFormat.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ abstract class NumberFormat protected () extends Format {
// def parse(source: String, parsePosition: ParsePosition): Number
// def parse(source: String): Number

def isParseIntegerOnly(): Boolean = this.parseIntegerOnly
def isParseIntegerOnly(): Boolean = this.parseIntegerOnly
def setParseIntegerOnly(value: Boolean): Unit = this.parseIntegerOnly = value

def isGroupingUsed(): Boolean
Expand All @@ -53,7 +53,7 @@ abstract class NumberFormat protected () extends Format {
def getCurrency(): Currency
def setCurrency(currency: Currency): Unit

def getRoundingMode(): RoundingMode = roundingMode
def getRoundingMode(): RoundingMode = roundingMode
def setRoundingMode(mode: RoundingMode): Unit = this.roundingMode = mode
}

Expand Down
137 changes: 137 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
inputs = {
typelevel-nix.url = "github:typelevel/typelevel-nix";
nixpkgs.follows = "typelevel-nix/nixpkgs";
flake-utils.follows = "typelevel-nix/flake-utils";
};

outputs = { self, nixpkgs, flake-utils, typelevel-nix }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs-x86_64 = import nixpkgs { system = "x86_64-darwin"; };
scala-cli-overlay = final: prev: { scala-cli = pkgs-x86_64.scala-cli; };
pkgs = import nixpkgs {
inherit system;
overlays = [ typelevel-nix.overlay scala-cli-overlay ];
};
in {
devShell = pkgs.devshell.mkShell {
imports = [ typelevel-nix.typelevelShell ];
packages = [
pkgs.nodePackages.vscode-langservers-extracted
];
typelevelShell = {
nodejs.enable = true;
jdk.package = pkgs.jdk17;
};
};
}

);
}