nixpkgs/pkgs/development/tools/rust/cargo-chef/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

21 lines
609 B
Nix

{ lib, rustPlatform, fetchCrate }:
rustPlatform.buildRustPackage rec {
pname = "cargo-chef";
version = "0.1.66";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-I4lD3+WFaW0kPmw5lPybDCRkG/at6VQH6l7pmngwoLU=";
};
cargoHash = "sha256-tSr4m10zS+/JynGmNY0+aoiYDATYwuyfr1VGKmIkHg4=";
meta = with lib; {
description = "A cargo-subcommand to speed up Rust Docker builds using Docker layer caching";
mainProgram = "cargo-chef";
homepage = "https://github.com/LukeMathWalker/cargo-chef";
license = licenses.mit;
maintainers = with maintainers; [ kkharji ];
};
}