Skip to content

Commit

Permalink
feat: Add cargo-doc-live
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Jun 6, 2024
1 parent b3ecded commit b0e8a94
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
32 changes: 32 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
systems.url = "github:nix-systems/default";
rust-flake.url = "github:juspay/rust-flake";
rust-flake.inputs.nixpkgs.follows = "nixpkgs";
process-compose-flake.url = "github:Platonic-Systems/process-compose-flake";
cargo-doc-live.url = "github:srid/cargo-doc-live";

# Dev tools
treefmt-nix.url = "github:numtide/treefmt-nix";
Expand All @@ -17,8 +19,10 @@
inputs.treefmt-nix.flakeModule
inputs.rust-flake.flakeModules.default
inputs.rust-flake.flakeModules.nixpkgs
inputs.process-compose-flake.flakeModule
inputs.cargo-doc-live.flakeModule
];
perSystem = { self', pkgs, lib, ... }: {
perSystem = { config, self', pkgs, lib, ... }: {
rust-project.crane.args = {
buildInputs = lib.optionals pkgs.stdenv.isDarwin (
with pkgs.darwin.apple_sdk.frameworks; [
Expand All @@ -39,7 +43,10 @@

devShells.default = pkgs.mkShell {
inputsFrom = [ self'.devShells.rust-nix-template ];
packages = [ pkgs.cargo-watch ];
packages = [
pkgs.cargo-watch
config.process-compose.cargo-doc-live.outputs.package
];
};
packages.default = self'.packages.rust-nix-template;
};
Expand Down

0 comments on commit b0e8a94

Please sign in to comment.