Files
jj-cz/flake.nix
T

50 lines
1.4 KiB
Nix
Raw Normal View History

2026-02-05 16:25:14 +01:00
{
description = "Conventional commits for Jujutsu";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
2026-02-05 16:25:14 +01:00
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 = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
"phundrak.cachix.org-1:osJAkYO0ioTOPqaQCIXMfIRz1/+YYlVFkup3R2KSexk="
];
extra-substituters = [
"https://nix-community.cachix.org"
"https://devenv.cachix.org"
"https://phundrak.cachix.org"
];
2026-02-05 16:25:14 +01:00
};
outputs = {
nixpkgs,
flake-utils,
rust-overlay,
alejandra,
...
}:
2026-02-05 16:25:14 +01:00
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;};
2026-02-05 16:25:14 +01:00
}
);
}