File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 - uses : leanprover/lean-action@v1
2020 with :
2121 build-args : " --wfail"
22-
23- nix :
24- name : Nix Flake Check
25- runs-on : ubuntu-latest
26- steps :
27- - uses : actions/checkout@v5
28- - uses : cachix/install-nix-action@v31
29- with :
30- nix_path : nixpkgs=channel:nixos-unstable
31- github_access_token : ${{ secrets.GITHUB_TOKEN }}
32- - run : nix build --accept-flake-config
Original file line number Diff line number Diff line change 11{
22 description = "LSpec Nix Flake" ;
33
4- nixConfig = {
5- extra-substituters = [
6- "https://cache.garnix.io"
7- ] ;
8- extra-trusted-public-keys = [
9- "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
10- ] ;
11- } ;
12-
134 inputs = {
145 nixpkgs . follows = "lean4-nix/nixpkgs" ;
156 flake-parts . url = "github:hercules-ci/flake-parts" ;
3627 self' ,
3728 config ,
3829 ...
39- } :
40- {
30+ } : {
4131 _module . args . pkgs = import nixpkgs {
4232 inherit system ;
4333 overlays = [ ( lean4-nix . readToolchainFile ./lean-toolchain ) ] ;
4434 } ;
4535
4636 # Build the library with `nix build`
47- packages . default = ( ( lean4-nix . lake { inherit pkgs ; } ) . mkPackage {
37+ packages . default =
38+ ( ( lean4-nix . lake { inherit pkgs ; } ) . mkPackage {
4839 src = ./. ;
4940 roots = [ "LSpec" ] ;
50- } ) . modRoot ;
41+ } ) . modRoot ;
5142
5243 devShells . default = pkgs . mkShell {
53- packages = with pkgs . lean ; [ lean lean-all ] ;
44+ packages = with pkgs . lean ; [ lean ] ;
5445 } ;
46+ } ;
5547 } ;
56- } ;
5748}
You can’t perform that action at this time.
0 commit comments