nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 37 lines 955 B view raw
1{ lib 2, rustPlatform 3, fetchCrate 4, pkg-config 5, openssl 6, stdenv 7, darwin 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "cargo-public-api"; 12 version = "0.31.1"; 13 14 src = fetchCrate { 15 inherit pname version; 16 hash = "sha256-w8K1dmTjnHm5bh1Ztn5DnBm2PEddxYLewWPiEnqbjCo="; 17 }; 18 19 cargoHash = "sha256-1SlGKnpwc8rN9w/d07nHVT3L4erA6/TWaza5qy57hlE="; 20 21 nativeBuildInputs = [ pkg-config ]; 22 23 buildInputs = [ openssl ] 24 ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; 25 26 # Tests fail 27 doCheck = false; 28 29 meta = with lib; { 30 description = "List and diff the public API of Rust library crates between releases and commits. Detect breaking API changes and semver violations"; 31 homepage = "https://github.com/Enselic/cargo-public-api"; 32 changelog = "https://github.com/Enselic/cargo-public-api/releases/tag/v${version}"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ matthiasbeyer ]; 35 }; 36} 37