Skip to content

Commit

Permalink
nix: build documentation, formats & shell only on x86_64-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Sep 30, 2024
1 parent f8c3bda commit cc3b2e5
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,22 +79,14 @@
{
ciJobs =
flake.hydraJobs
// {
// { revision = pkgs.writeText "revision" (inputs.self.rev or "dirty"); }
// lib.optionalAttrs (buildSystem == "x86_64-linux") {
# This ensure hydra send a status for the required job (even if no change other than commit hash)
revision = pkgs.writeText "revision" (inputs.self.rev or "dirty");
inherit network-docs;
devShell = devShells.default;
inherit format;
};
}
# add network-docs & check-stylish to support
# `nix build .\#hydraJobs.x86_64-linux.network-docs` and
# `nix build .\#hydraJobs.x86_64-linux.check-stylis`.
// {
inherit network-docs;
# check formatting but only on a `x86_64-linux` system
format = lib.optionalAttrs (pkgs.buildPlatform.system == "x86_64-linux") format;
};
};

# Provide hydraJobs through legacyPackages to allow building without system prefix, e.g.
# `nix build .\#network-mux:lib:network-mux`
Expand Down

0 comments on commit cc3b2e5

Please sign in to comment.