fzf-make 0.15.0

A command line tool that executes make target using fuzzy finder with preview window.
{
  description = "fzf-make is the command line tool that execute make target using fuzzy finder with preview window.";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
    utils.url = "github:numtide/flake-utils";
  };

  outputs = { nixpkgs, flake-utils, ... }:
    flake-utils.lib.eachDefaultSystem (system: let
      pkgs = nixpkgs.legacyPackages.${system};
      cargoTOML = builtins.fromTOML (builtins.readFile (./. + "/Cargo.toml"));
        in
      {
        devShells.default = pkgs.mkShell {
          packages = with pkgs; [
            bat
            cargo
            gnumake
          ];
        };

        packages = rec {
          fzf-make = pkgs.rustPlatform.buildRustPackage {
            pname = "fzf-make";
            inherit (cargoTOML.package) version;

            src = ./.;
            cargoLock.lockFile = ./Cargo.lock;
          
            buildInputs = [ pkgs.bat ];
          };
          default = fzf-make;
        };
    });
}