chore: migrate to Forgejo
All checks were successful
Checking Renovate configuration / validate (pull_request) Successful in 1m46s
Build and test / Tests (pull_request) Successful in 7m34s
Build and test / Clippy (pull_request) Successful in 7m37s
Build and test / Build AMD64 (pull_request) Successful in 7m37s
Checking yaml / Run yamllint (pull_request) Successful in 4s
Build and test / Generate Documentation (pull_request) Successful in 6m41s

This commit is contained in:
Marc Plano-Lesay 2025-10-09 18:35:53 +11:00
parent b6686dcce3
commit a0d01b9253
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
13 changed files with 508 additions and 61 deletions

39
flake.nix Normal file
View file

@ -0,0 +1,39 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
pre-commit-hooks = {
url = "github:cachix/git-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{ self
, nixpkgs
, flake-utils
, ...
}@inputs:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
# Place all toolchain components in a single directory for IntelliJ
rust-toolchain = pkgs.symlinkJoin {
name = "rust-toolchain";
paths = with pkgs; [
rustc
cargo
rustPlatform.rustcSrc
] ++ lib.optionals stdenv.isDarwin [
libiconv
];
};
in
{
checks = import ./nix/git-hooks.nix { inherit inputs pkgs; };
devShells = import ./nix/shell.nix { inherit pkgs rust-toolchain self; };
formatter = pkgs.nixpkgs-fmt;
});
}