nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchCrate,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "cargo-chef";
9 version = "0.1.72";
10
11 src = fetchCrate {
12 inherit pname version;
13 hash = "sha256-mSzSc72/Y18O9nSoqeU4GQGa9lTwi34ojnIsZg8wBpE=";
14 };
15
16 cargoHash = "sha256-l4h7DFl9WFB0uARk1P/EAYqAgSiHEEnRXS+h69qaL0Q=";
17
18 meta = with lib; {
19 description = "Cargo-subcommand to speed up Rust Docker builds using Docker layer caching";
20 mainProgram = "cargo-chef";
21 homepage = "https://github.com/LukeMathWalker/cargo-chef";
22 license = licenses.mit;
23 maintainers = with maintainers; [ kkharji ];
24 };
25}