6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, libgit2
|
|
, openssl
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-semver-checks";
|
|
version = "0.15.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "obi1kenobi";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-+YRyShALdDQDfh5XDY36R29SzbBjlT8mCIucwJ++KrQ=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-wwsFqoQXasCKfnCBF4qGFIoD7Kj53K9IKQ1auuqTPAM=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ libgit2 openssl ] ++ lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
checkFlags = [
|
|
# requires nightly version of cargo-rustdoc
|
|
"--skip=dump::tests"
|
|
"--skip=query::tests"
|
|
"--skip=verify_binary_contains_lints"
|
|
];
|
|
|
|
# use system openssl
|
|
OPENSSL_NO_VENDOR = true;
|
|
|
|
meta = with lib; {
|
|
description = "A tool to scan your Rust crate for semver violations";
|
|
homepage = "https://github.com/obi1kenobi/cargo-semver-checks";
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
|
maintainers = with maintainers; [ figsoda matthiasbeyer ];
|
|
};
|
|
}
|