mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 19:43:30 +00:00
8d5472026d
Diff: https://diff.rs/cargo-workspaces/0.2.43/0.2.44 Changelog: https://github.com/pksunkara/cargo-workspaces/blob/v0.2.44/CHANGELOG.md
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchCrate
|
|
, pkg-config
|
|
, libgit2_1_6
|
|
, libssh2
|
|
, openssl
|
|
, zlib
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-workspaces";
|
|
version = "0.2.44";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
hash = "sha256-5r5XRb/RWHv0Am58VPOxe+QSKn2QT4JZYp5LjTh20KM=";
|
|
};
|
|
|
|
cargoHash = "sha256-p+7CWvspYk1LRO2s8Sstlven/2edNe+JYFQHaDFlGkM=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libgit2_1_6
|
|
libssh2
|
|
openssl
|
|
zlib
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
env = {
|
|
LIBSSH2_SYS_USE_PKG_CONFIG = true;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "A tool for managing cargo workspaces and their crates, inspired by lerna";
|
|
longDescription = ''
|
|
A tool that optimizes the workflow around cargo workspaces with
|
|
git and cargo by providing utilities to version, publish, execute
|
|
commands and more.
|
|
'';
|
|
homepage = "https://github.com/pksunkara/cargo-workspaces";
|
|
changelog = "https://github.com/pksunkara/cargo-workspaces/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda macalinao matthiasbeyer ];
|
|
mainProgram = "cargo-workspaces";
|
|
};
|
|
}
|