Merge pull request 'add cargo to dev shell' (#39) from nix-update-dev-shell into main
Reviewed-on: #39
This commit is contained in:
commit
4a1eb8d3f9
1 changed files with 54 additions and 43 deletions
15
flake.nix
15
flake.nix
|
@ -24,16 +24,19 @@
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
corepack_latest
|
corepack_latest
|
||||||
nodejs
|
nodejs
|
||||||
|
cargo
|
||||||
|
clippy
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
formatter = forSystems (
|
packages = forSystems (
|
||||||
system:
|
system:
|
||||||
let
|
let
|
||||||
pkgs = pkgs' system;
|
pkgs = pkgs' system;
|
||||||
in
|
in
|
||||||
pkgs.treefmt.withConfig {
|
{
|
||||||
|
fmt = pkgs.treefmt.withConfig {
|
||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = with pkgs; [
|
||||||
nixfmt-rfc-style
|
nixfmt-rfc-style
|
||||||
nodePackages.prettier
|
nodePackages.prettier
|
||||||
|
@ -75,7 +78,15 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
formatter = forSystems (
|
||||||
|
system:
|
||||||
|
let
|
||||||
|
pkgs = pkgs' system;
|
||||||
|
in
|
||||||
|
self.outputs.packages.${system}.fmt
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue