12 rustPlatform.buildRustPackage rec {
13 pname = "cargo-semver-checks";
16 src = fetchFromGitHub {
20 hash = "sha256-U7ykTLEuREe2GTVswcAw3R3h4zbkWxuI2dt/2689xSA=";
23 cargoHash = "sha256-NoxYHwY5XpRiqrOjQsaSWQCXFalNAS9SchaKwHbB2uU=";
33 ++ lib.optionals stdenv.hostPlatform.isDarwin [
34 darwin.apple_sdk.frameworks.SystemConfiguration
38 # requires internet access
39 "--skip=detects_target_dependencies"
43 patchShebangs scripts/regenerate_test_rustdocs.sh
44 substituteInPlace scripts/regenerate_test_rustdocs.sh \
46 'TOPLEVEL="$(git rev-parse --show-toplevel)"' \
48 scripts/regenerate_test_rustdocs.sh
52 description = "Tool to scan your Rust crate for semver violations";
53 mainProgram = "cargo-semver-checks";
54 homepage = "https://github.com/obi1kenobi/cargo-semver-checks";
55 changelog = "https://github.com/obi1kenobi/cargo-semver-checks/releases/tag/v${version}";
56 license = with licenses; [
60 maintainers = with maintainers; [