Skip to content

Commit

Permalink
cargo-semver-checks: refactor
Browse files Browse the repository at this point in the history
(cherry picked from commit ce0e60c)
  • Loading branch information
Defelo authored and github-actions[bot] committed Dec 29, 2024
1 parent cf5a653 commit e012c5b
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions pkgs/by-name/ca/cargo-semver-checks/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
zlib,
stdenv,
darwin,
git,
testers,
cargo-semver-checks,
nix-update-script,
}:

rustPlatform.buildRustPackage rec {
Expand All @@ -16,7 +18,7 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "obi1kenobi";
repo = pname;
rev = "v${version}";
tag = "v${version}";
hash = "sha256-IcKjiKFvkFvu8+LFCAmm39AGUaUdK8zhtNzzSb8VPE0=";
};

Expand Down Expand Up @@ -53,16 +55,21 @@ rustPlatform.buildRustPackage rec {
'cargo-semver-checks ${version}'
'';

meta = with lib; {
passthru = {
tests.version = testers.testVersion { package = cargo-semver-checks; };
updateScript = nix-update-script { };
};

meta = {
description = "Tool to scan your Rust crate for semver violations";
mainProgram = "cargo-semver-checks";
homepage = "https://github.com/obi1kenobi/cargo-semver-checks";
changelog = "https://github.com/obi1kenobi/cargo-semver-checks/releases/tag/v${version}";
license = with licenses; [
license = with lib.licenses; [
mit # or
asl20
];
maintainers = with maintainers; [
maintainers = with lib.maintainers; [
figsoda
matthiasbeyer
];
Expand Down

0 comments on commit e012c5b

Please sign in to comment.