2022-07-18 16:21:45 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, stdenv
|
2023-01-11 07:51:40 +00:00
|
|
|
, darwin
|
2022-07-18 16:21:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-public-api";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.29.0";
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-Tf2nAisZlKPalWa0T5XDAWy+d/ERJYtzJVb3gEdcGSo=";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
cargoHash = "sha256-X+4C/ExKAVvAX11dBcJHhV7WW/EUI1zk3UR8mBQkSY4=";
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
# Tests fail
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "List and diff the public API of Rust library crates between releases and commits. Detect breaking API changes and semver violations";
|
|
|
|
homepage = "https://github.com/Enselic/cargo-public-api";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/Enselic/cargo-public-api/releases/tag/v${version}";
|
2022-07-18 16:21:45 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|