|
1 | 1 | {
|
2 | 2 | description = "GitHub Pages";
|
3 | 3 |
|
4 |
| - inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz"; # nixos-unstable |
| 4 | + inputs = { |
| 5 | + nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz"; # nixos-unstable |
5 | 6 |
|
6 |
| - inputs.ruby-nix = { |
7 |
| - url = "github:inscapist/ruby-nix"; |
8 |
| - inputs.nixpkgs.follows = "nixpkgs"; |
9 |
| - }; |
| 7 | + ruby-nix = { |
| 8 | + url = "github:inscapist/ruby-nix"; |
| 9 | + inputs.nixpkgs.follows = "nixpkgs"; |
| 10 | + }; |
10 | 11 |
|
11 |
| - inputs.bundix = { |
12 |
| - url = "github:inscapist/bundix/main"; |
13 |
| - inputs.nixpkgs.follows = "nixpkgs"; |
14 |
| - }; |
| 12 | + bundix = { |
| 13 | + url = "github:inscapist/bundix/main"; |
| 14 | + inputs.nixpkgs.follows = "nixpkgs"; |
| 15 | + }; |
15 | 16 |
|
16 |
| - inputs.flake-schemas.url = "https://flakehub.com/f/DeterminateSystems/flake-schemas/0.1.*.tar.gz"; |
| 17 | + flake-schemas.url = "https://flakehub.com/f/DeterminateSystems/flake-schemas/0.1.*.tar.gz"; |
| 18 | + }; |
17 | 19 |
|
18 |
| - outputs = { self, nixpkgs, ruby-nix, bundix, flake-schemas }: |
| 20 | + outputs = |
| 21 | + { |
| 22 | + self, |
| 23 | + nixpkgs, |
| 24 | + ruby-nix, |
| 25 | + bundix, |
| 26 | + flake-schemas, |
| 27 | + }: |
19 | 28 | let
|
20 | 29 | allSystems = [
|
21 | 30 | "x86_64-linux"
|
22 | 31 | "aarch64-darwin"
|
23 | 32 | ];
|
24 | 33 |
|
25 |
| - forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f { |
26 |
| - # Current 'ruby' package version: 3.3.4 |
27 |
| - # Should match https://github.com/actions/jekyll-build-pages/blob/v1.0.13/Dockerfile |
28 |
| - pkgs = import nixpkgs { inherit system; }; |
29 |
| - }); |
| 34 | + forAllSystems = |
| 35 | + f: |
| 36 | + nixpkgs.lib.genAttrs allSystems ( |
| 37 | + system: |
| 38 | + f { |
| 39 | + # Current 'ruby' package version: 3.3.4 |
| 40 | + # Should match https://github.com/actions/jekyll-build-pages/blob/v1.0.13/Dockerfile |
| 41 | + pkgs = import nixpkgs { inherit system; }; |
| 42 | + } |
| 43 | + ); |
30 | 44 | in
|
31 | 45 | {
|
32 | 46 | inherit (flake-schemas) schemas;
|
33 | 47 |
|
34 |
| - formatter = forAllSystems ({ pkgs }: pkgs.nixpkgs-fmt); |
| 48 | + formatter = forAllSystems ({ pkgs }: pkgs.nixfmt-rfc-style); |
35 | 49 |
|
36 |
| - devShells = forAllSystems ({ pkgs }: |
| 50 | + devShells = forAllSystems ( |
| 51 | + { pkgs }: |
37 | 52 | let
|
38 |
| - ruby-env = (ruby-nix.lib pkgs { |
39 |
| - name = "github-pages"; |
40 |
| - gemset = ./gemset.nix; |
41 |
| - }).env; |
| 53 | + ruby-env = |
| 54 | + (ruby-nix.lib pkgs { |
| 55 | + name = "github-pages"; |
| 56 | + gemset = ./gemset.nix; |
| 57 | + }).env; |
42 | 58 |
|
43 | 59 | bundix-cli = bundix.packages.${pkgs.system}.default;
|
44 | 60 |
|
|
0 commit comments