File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99 outputs = inputs @{ self , flake-parts , nixpkgs , ... } :
1010 flake-parts . lib . mkFlake { inherit inputs ; } {
11- systems = nixpkgs . lib . systems . flakeExposed ;
11+ systems = [ "x86_64-linux" "aarch64-darwin" ] ;
1212 imports = [ inputs . emanote . flakeModule ] ;
1313 perSystem = { self' , pkgs , system , ... } : {
1414 emanote = {
2020 } ;
2121 } ;
2222 } ;
23-
24- # Check that links are working
25- checks . linkCheck =
26- pkgs . runCommand "linkCheck"
27- {
28- buildInputs = [ pkgs . html-proofer ] ;
29- } ''
30- # Ensure that the htmlproofer is using the correct locale
31- export LANG=en_US.UTF-8
32- # Run htmlproofer
33- htmlproofer --disable-external ${ self' . packages . default }
34- touch $out
35- '' ;
36-
37- apps = {
38- # This is like `checks.doc-linkCheck`, but also does external link checks
39- # (which is something we can't do in Nix due to sandboxing)
40- linkCheck . program = pkgs . writeShellApplication {
41- name = "linkCheck" ;
42- runtimeInputs = [ pkgs . html-proofer ] ;
43- text = ''
44- set -x
45- htmlproofer \
46- --disable-external \
47- --no-check-external-hash \
48- ${ self' . packages . default }
49- '' ;
50- } ;
51- } ;
5223 } ;
5324 } ;
5425}
You can’t perform that action at this time.
0 commit comments