pre-commit-rust/flake.nix

16 lines
405 B
Nix
Raw Normal View History

2024-01-01 11:56:15 +00:00
{
description = "Rust tools for pre-commit";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system; };
in {
devShell = pkgs.mkShell { buildInputs = with pkgs; [ pre-commit ]; };
});
}