Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
Add nix flake
Change TFM to netstandard2.0
Update Sutil, Fantomas, Fable, and .NET
  • Loading branch information
sheridanchris committed Jan 13, 2024
1 parent 90eb18f commit 9c7f9bb
Show file tree
Hide file tree
Showing 10 changed files with 369 additions and 188 deletions.
4 changes: 2 additions & 2 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"isRoot": true,
"tools": {
"fantomas": {
"version": "5.2.1",
"version": "6.2.3",
"commands": [
"fantomas"
]
},
"fable": {
"version": "4.0.0",
"version": "4.9.0",
"commands": [
"fable"
]
Expand Down
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake .
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -711,3 +711,5 @@ dist
# End of https://www.toptal.com/developers/gitignore/api/node

dist/
.pre-commit-config.yaml
.direnv/
186 changes: 186 additions & 0 deletions flake.lock

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

41 changes: 41 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/master";
flake-utils.url = "github:numtide/flake-utils";
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
};
outputs = {
self,
nixpkgs,
flake-utils,
pre-commit-hooks,
...
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;};
in
with pkgs; {
checks = {
pre-commit-check = pre-commit-hooks.lib.${system}.run {
src = ./.;
hooks = {
fantomas = {
enable = true;
name = "fantomas";
description = "Format your F# code with fantomas.";
entry = "dotnet fantomas";
files = "(\\.fs$)|(\\.fsx$)";
};
};
};
};
devShells.default = mkShell {
inherit (self.checks.${system}.pre-commit-check) shellHook;
packages = [
dotnet-sdk_8
nodejs_21
];
DOTNET_ROOT = "${dotnet-sdk_8}";
};
});
}
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "7.0.100",
"version": "8.0.100",
"rollForward": "latestMinor"
}
}
}
Loading

0 comments on commit 9c7f9bb

Please sign in to comment.