initial commit
All checks were successful
Publish Docker Images / coverage-and-sonar (push) Successful in 6m0s

This commit is contained in:
2026-02-05 16:25:14 +01:00
commit a16eae58a0
23 changed files with 1613 additions and 0 deletions

50
flake.nix Normal file
View File

@@ -0,0 +1,50 @@
{
description = "Conventional commits for Jujutsu";
inputs = {
nixpkgs.url = "github:cachix/devenv-nixpkgs/rolling";
flake-utils.url = "github:numtide/flake-utils";
alejandra = {
url = "github:kamadorueda/alejandra/4.0.0";
inputs.nixpkgs.follows = "nixpkgs";
};
devenv = {
url = "github:cachix/devenv";
inputs.nixpkgs.follows = "nixpkgs";
};
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
nixConfig = {
extra-trusted-public-keys = [ "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=" ];
extra-substituters = [ "https://devenv.cachix.org" ];
};
outputs = {
nixpkgs,
flake-utils,
rust-overlay,
alejandra,
...
} @ inputs:
flake-utils.lib.eachDefaultSystem (
system: let
overlays = [(import rust-overlay)];
pkgs = import nixpkgs {inherit system overlays;};
rustVersion = pkgs.rust-bin.stable.latest.default;
rustPlatform = pkgs.makeRustPlatform {
cargo = rustVersion;
rustc = rustVersion;
};
in {
formatter = alejandra.defaultPackage.${system};
packages = import ./nix/package.nix {inherit pkgs rustPlatform;};
devShell = import ./nix/shell.nix {
inherit inputs pkgs rustVersion;
};
}
);
}