2023-08-17 00:56:09 +00:00
|
|
|
{ lib
|
2022-08-28 16:14:28 +00:00
|
|
|
, rustPlatform
|
2023-08-17 00:56:09 +00:00
|
|
|
, fetchCrate
|
2022-08-28 16:14:28 +00:00
|
|
|
, pkg-config
|
2023-08-17 00:56:09 +00:00
|
|
|
, libgit2_1_6
|
|
|
|
, libssh2
|
2022-08-28 16:14:28 +00:00
|
|
|
, openssl
|
|
|
|
, zlib
|
|
|
|
, stdenv
|
2023-08-17 00:56:09 +00:00
|
|
|
, darwin
|
2022-08-28 16:14:28 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-workspaces";
|
2023-08-17 00:56:09 +00:00
|
|
|
version = "0.2.44";
|
2022-08-28 16:14:28 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-08-17 00:56:09 +00:00
|
|
|
hash = "sha256-5r5XRb/RWHv0Am58VPOxe+QSKn2QT4JZYp5LjTh20KM=";
|
2022-08-28 16:14:28 +00:00
|
|
|
};
|
|
|
|
|
2023-08-17 00:56:09 +00:00
|
|
|
cargoHash = "sha256-p+7CWvspYk1LRO2s8Sstlven/2edNe+JYFQHaDFlGkM=";
|
2022-08-28 16:14:28 +00:00
|
|
|
|
2023-08-17 00:56:09 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2022-08-28 16:14:28 +00:00
|
|
|
|
2023-08-17 00:56:09 +00:00
|
|
|
buildInputs = [
|
|
|
|
libgit2_1_6
|
|
|
|
libssh2
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
|
|
|
|
|
|
|
env = {
|
|
|
|
LIBSSH2_SYS_USE_PKG_CONFIG = true;
|
|
|
|
};
|
2022-08-28 16:14:28 +00:00
|
|
|
|
|
|
|
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";
|
2023-08-17 00:56:09 +00:00
|
|
|
changelog = "https://github.com/pksunkara/cargo-workspaces/blob/v${version}/CHANGELOG.md";
|
2022-08-28 16:14:28 +00:00
|
|
|
license = licenses.mit;
|
2023-08-17 00:56:09 +00:00
|
|
|
maintainers = with maintainers; [ figsoda macalinao matthiasbeyer ];
|
|
|
|
mainProgram = "cargo-workspaces";
|
2022-08-28 16:14:28 +00:00
|
|
|
};
|
|
|
|
}
|