-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nix flake Change TFM to netstandard2.0 Update Sutil, Fantomas, Fable, and .NET
- Loading branch information
1 parent
90eb18f
commit 9c7f9bb
Showing
10 changed files
with
369 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -711,3 +711,5 @@ dist | |
# End of https://www.toptal.com/developers/gitignore/api/node | ||
|
||
dist/ | ||
.pre-commit-config.yaml | ||
.direnv/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}"; | ||
}; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
Oops, something went wrong.