diff options
Diffstat (limited to 'pkgs/by-name/ca')
-rw-r--r-- | pkgs/by-name/ca/cargo-autoinherit/package.nix | 25 | ||||
-rw-r--r-- | pkgs/by-name/ca/cargo-expand/package.nix | 6 | ||||
-rw-r--r-- | pkgs/by-name/ca/cargo-make/package.nix | 6 | ||||
-rw-r--r-- | pkgs/by-name/ca/cargo-unfmt/package.nix | 34 |
4 files changed, 65 insertions, 6 deletions
diff --git a/pkgs/by-name/ca/cargo-autoinherit/package.nix b/pkgs/by-name/ca/cargo-autoinherit/package.nix new file mode 100644 index 000000000000..71beb30ee32f --- /dev/null +++ b/pkgs/by-name/ca/cargo-autoinherit/package.nix @@ -0,0 +1,25 @@ +{ lib, rustPlatform, fetchFromGitHub }: + +rustPlatform.buildRustPackage rec { + pname = "cargo-autoinherit"; + version = "0.1.4"; + + src = fetchFromGitHub { + owner = "mainmatter"; + repo = "cargo-autoinherit"; + rev = "v${version}"; + hash = "sha256-BuZDCd4SwSYg5eKV61L3RpPVmq5NZDAOc9zOz5QiSNI="; + }; + + cargoHash = "sha256-9hhrVkC1xB2E/vatkiM4PIJyXq+0GDoqlgXZXc8WehU="; + + meta = with lib; { + description = "Automatically DRY up your Rust dependencies"; + homepage = "https://github.com/mainmatter/cargo-autoinherit"; + license = with licenses; [ asl20 /* OR */ mit ]; + platforms = platforms.unix; + maintainers = with maintainers; [ matthiasbeyer ]; + mainProgram = "cargo-autoinherit"; + }; +} + diff --git a/pkgs/by-name/ca/cargo-expand/package.nix b/pkgs/by-name/ca/cargo-expand/package.nix index 62b88be9618c..88d596433009 100644 --- a/pkgs/by-name/ca/cargo-expand/package.nix +++ b/pkgs/by-name/ca/cargo-expand/package.nix @@ -5,16 +5,16 @@ rustPlatform.buildRustPackage rec { pname = "cargo-expand"; - version = "1.0.81"; + version = "1.0.82"; src = fetchFromGitHub { owner = "dtolnay"; repo = pname; rev = version; - hash = "sha256-ZOoMWvtuLDhbJu+qzVPHGTCqh2b3PHUggfxNtUW1DoU="; + hash = "sha256-3NukL5DyyBMR1yiSP7SWhREP/vFl+Zd2gsGxC//7edI="; }; - cargoHash = "sha256-cTz9ZR+79yPqTaDqXjSlqXd7NxHDl6Q75N26z+vi7ck="; + cargoHash = "sha256-niKg9IxNranrm52bXbp231cx/47kY+fd2ycdkudAWVo="; meta = with lib; { description = "Cargo subcommand to show result of macro expansion"; diff --git a/pkgs/by-name/ca/cargo-make/package.nix b/pkgs/by-name/ca/cargo-make/package.nix index 0c8aaec637f3..a0c64e2c4f94 100644 --- a/pkgs/by-name/ca/cargo-make/package.nix +++ b/pkgs/by-name/ca/cargo-make/package.nix @@ -10,16 +10,16 @@ rustPlatform.buildRustPackage rec { pname = "cargo-make"; - version = "0.37.10"; + version = "0.37.11"; src = fetchFromGitHub { owner = "sagiegurari"; repo = "cargo-make"; rev = version; - hash = "sha256-qahmRwRjwefkp21f4nsIR4THGibkQ8+20qVmQmJ7+Vk="; + hash = "sha256-a8iNMvMB52PEFVQq4Hv3bnIrA8k5p1a5M7JBp67SUDk="; }; - cargoHash = "sha256-NTi+1ULK+k1JIP7z3/3v7gPUxXgliq3i8gtJQVLDGEY="; + cargoHash = "sha256-UrVSGxDRhD3Tm25cUYOkkf/A2mgLZAyBImu1AeNOdX4="; nativeBuildInputs = [ pkg-config ]; diff --git a/pkgs/by-name/ca/cargo-unfmt/package.nix b/pkgs/by-name/ca/cargo-unfmt/package.nix new file mode 100644 index 000000000000..3a2a16dfaaf6 --- /dev/null +++ b/pkgs/by-name/ca/cargo-unfmt/package.nix @@ -0,0 +1,34 @@ +{ lib +, stdenv +, fetchFromGitHub +, rustPlatform +, darwin +, libiconv +}: + +rustPlatform.buildRustPackage { + pname = "cargo-unfmt"; + version = "0.3.3"; + + src = fetchFromGitHub { + owner = "fprasx"; + repo = "cargo-unfmt"; + rev = "0f4882f65d248e32812e0e854fa11d7db60921e7"; + hash = "sha256-nvn4nZkkNQQvzShwoxtFqHeyhXQPm2GJoTKBI+MkFgM="; + }; + + cargoHash = "sha256-mMeHTYCUIZR3jVvTxfyH4I9wGfUdCWcyn9djnksAY8k="; + + buildInputs = lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ]; + + # Doc tests are broken on 0.3.3 + doCheck = false; + + meta = with lib; { + description = "Unformat code into perfect rectangles"; + homepage = "https://github.com/fprasx/cargo-unfmt"; + license = licenses.gpl3Plus; + mainProgram = "cargo-unfmt"; + maintainers = with maintainers; [ cafkafk ]; + }; +} |