Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 24 lines 768 B view raw
1{ lib, rustPlatform, fetchCrate }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "cargo-lock"; 5 version = "9.0.0"; 6 7 src = fetchCrate { 8 inherit pname version; 9 hash = "sha256-SMxM66qo3Xmst+SVXu4LYZ0Zzn15wqVVNqqHzAkip/s="; 10 }; 11 12 cargoHash = "sha256-wUp4zBY64MvD4anGlVsJrI3pyfwVSQGnn6YuweTeYNk="; 13 14 buildFeatures = [ "cli" ]; 15 16 meta = with lib; { 17 description = "Self-contained Cargo.lock parser with graph analysis"; 18 mainProgram = "cargo-lock"; 19 homepage = "https://github.com/rustsec/rustsec/tree/main/cargo-lock"; 20 changelog = "https://github.com/rustsec/rustsec/blob/cargo-lock/v${version}/cargo-lock/CHANGELOG.md"; 21 license = with licenses; [ asl20 /* or */ mit ]; 22 maintainers = with maintainers; [ figsoda matthiasbeyer ]; 23 }; 24}