11 rustPlatform.buildRustPackage rec {
12 pname = "cargo-semver-checks";
15 src = fetchFromGitHub {
19 hash = "sha256-U7ykTLEuREe2GTVswcAw3R3h4zbkWxuI2dt/2689xSA=";
22 cargoHash = "sha256-NoxYHwY5XpRiqrOjQsaSWQCXFalNAS9SchaKwHbB2uU=";
30 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
31 darwin.apple_sdk.frameworks.SystemConfiguration
35 # requires internet access
36 "--skip=detects_target_dependencies"
40 patchShebangs scripts/regenerate_test_rustdocs.sh
41 substituteInPlace scripts/regenerate_test_rustdocs.sh \
43 'TOPLEVEL="$(git rev-parse --show-toplevel)"' \
45 scripts/regenerate_test_rustdocs.sh
49 description = "Tool to scan your Rust crate for semver violations";
50 mainProgram = "cargo-semver-checks";
51 homepage = "https://github.com/obi1kenobi/cargo-semver-checks";
52 changelog = "https://github.com/obi1kenobi/cargo-semver-checks/releases/tag/v${version}";
53 license = with licenses; [ mit /* or */ asl20 ];
54 maintainers = with maintainers; [ figsoda matthiasbeyer ];