Files
jj-cz/flake.nix
T
phundrak 777bb62b24
Run checks and build archives / build (linux-x86_64) (push) Failing after 2m55s
Run checks and build archives / coverage-and-sonar (push) Successful in 7m25s
Run checks and build archives / build (linux-aarch64) (push) Failing after 3m15s
Run checks and build archives / build (windows-x86_64) (push) Failing after 3m13s
ci(nix): add archive packages and overhaul CI workflows
2026-05-28 21:30:04 +02:00

42 lines
1.1 KiB
Nix

{
description = "Conventional commits for Jujutsu";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
alejandra = {
url = "github:kamadorueda/alejandra/4.0.0";
inputs.nixpkgs.follows = "nixpkgs";
};
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
nixConfig = {
extra-trusted-public-keys = ["phundrak.cachix.org-1:osJAkYO0ioTOPqaQCIXMfIRz1/+YYlVFkup3R2KSexk="];
extra-substituters = ["https://phundrak.cachix.org"];
};
outputs = {
nixpkgs,
flake-utils,
rust-overlay,
alejandra,
...
}:
flake-utils.lib.eachDefaultSystem (
system: let
overlays = [(import rust-overlay)];
pkgs = import nixpkgs {inherit system overlays;};
rustVersion = pkgs.rust-bin.stable.latest.default;
packages = import ./nix/packages.nix {inherit pkgs system;};
in {
inherit packages;
formatter = alejandra.defaultPackage.${system};
devShell = import ./nix/shell.nix {inherit pkgs rustVersion;};
}
);
}