about summary refs log blame commit diff
path: root/tools/crate2nix-generate.nix
blob: a627588ae34b4b2e5770897c99bb3d4861e926a8 (plain) (tree)
1
2
3
4
5
6
7
8







                                                               
{ pkgs, depot, ... }:

# Run crate2nix generate in the current working directory, then
# format the generated file with depotfmt.
pkgs.writeShellScriptBin "crate2nix-generate" ''
  ${pkgs.crate2nix}/bin/crate2nix generate --all-features
  ${depot.tools.depotfmt}/bin/depotfmt Cargo.nix
''