brck 0.1.3

A simple bit rot checker
{
  description = "A simple bit rot checker";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
    flake-utils.url = "github:numtide/flake-utils";
    naersk.url = "github:nix-community/naersk";
  };

  outputs = { self, nixpkgs, flake-utils, naersk, ... }@inputs:
    flake-utils.lib.eachDefaultSystem (system:
      let
	pkgs = import nixpkgs {
	  inherit system;
	  config = { };
	  overlays = [ ];
	};
	naersk' = pkgs.callPackage naersk { };
    in rec {
      # nix build
      # nix run . -- --help
      defaultPackage = packages.brck;

      # nix build .#brck
      # nix run .#brck -- --help
      packages.brck = naersk'.buildPackage {
	name = "brck";
	src = builtins.path { path = ./.; name = "brck"; };
	meta.mainProgram = "brck";
      };

      # nix develop
      devShell = pkgs.mkShell {
	nativeBuildInputs = with pkgs; [ rustc cargo rustfmt clippy cargo-audit cargo-edit ];
      };
    }
  );
}