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
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:
parent
b6686dcce3
commit
a0d01b9253
13 changed files with 508 additions and 61 deletions
36
nix/shell.nix
Normal file
36
nix/shell.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ pkgs, rust-toolchain, self, ... }:
|
||||
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
name = "cbz2pdf";
|
||||
buildInputs = with pkgs; [
|
||||
cargo
|
||||
cargo-edit
|
||||
cargo-insta
|
||||
cargo-machete
|
||||
cargo-release
|
||||
cargo-sort
|
||||
git-cliff
|
||||
openssl
|
||||
pkg-config
|
||||
rustc
|
||||
rust-toolchain
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
libiconv
|
||||
] ++ self.checks.${pkgs.system}.pre-commit-check.enabledPackages;
|
||||
RUST_BACKTRACE = 1;
|
||||
|
||||
# Copy rust-toolchain to project directory for easy use in IntelliJ
|
||||
shellHook = ''
|
||||
if [ -L ./.rust-toolchain ] && [ "$(readlink ./.rust-toolchain)" = "${rust-toolchain}" ]; then
|
||||
echo "Rust toolchain symlink is already correct."
|
||||
else
|
||||
rm -f ./.rust-toolchain
|
||||
ln -s ${rust-toolchain} ./.rust-toolchain
|
||||
echo "Rust toolchain symlink updated."
|
||||
fi
|
||||
|
||||
${self.checks.${pkgs.system}.pre-commit-check.shellHook}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue