Skip to content

Commit

Permalink
run chake flaker
Browse files Browse the repository at this point in the history
closes #10
  • Loading branch information
maxheld83 committed Jan 30, 2025
1 parent 11c4ac3 commit dc9fc19
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v9
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v16
with:
Expand Down
104 changes: 98 additions & 6 deletions flake.lock

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

4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@

# Flake inputs
inputs = {
flake-checker.url = "https://flakehub.com/f/DeterminateSystems/flake-checker/0.2.4.tar.gz";
flake-schemas.url = "https://flakehub.com/f/DeterminateSystems/flake-schemas/*";
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*";
};

# Flake outputs that other flakes can use
outputs = { self, flake-schemas, nixpkgs }:
outputs = { self, flake-schemas, nixpkgs, flake-checker }:
let
# Helpers for producing system-specific outputs
supportedSystems = [ "x86_64-linux" "aarch64-darwin" "x86_64-darwin" "aarch64-linux" ];
Expand All @@ -26,6 +27,7 @@
default = pkgs.mkShell {
# Pinned packages available in the environment
packages = with pkgs; [
flake-checker.packages.${pkgs.system}.default
gnumake
nixpkgs-fmt
];
Expand Down
8 changes: 6 additions & 2 deletions make/nix.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
NIX_FILES := $(wildcard *.nix)

## Check all nix stuff
check-nix: check-flake
check-nix: check-flake check-flake-checker

# Check nix flake
# Check nix flake for bad syntax etc.
check-flake:
nix flake check --all-systems

# Check nix flake for outdated dependencies, etc.
check-flake-checker: flake.lock
flake-checker

# Update flake.lock file
update-flake:
nix flake update
Expand Down

0 comments on commit dc9fc19

Please sign in to comment.