patchutils 0.1.0

Utilities for manipulating patch files
let
  sources = import ./npins;
  pkgs = import sources.nixpkgs { };

  pre-commit-check = (import sources.pre-commit-hooks).run {
    src = ./.;

    hooks = {
      nixfmt.enable = true;
      statix.enable = true;

      rustfmt.enable = true;
      clippy.enable = true;

      commitizen.enable = true;
    };
  };

in pkgs.mkShell {
  packages = with pkgs; [ rustc cargo ];

  shellHook = ''
    ${pre-commit-check.shellHook}
  '';
}