nixpkgs/pkgs/development/tools/rust/cargo-workspaces/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.2 KiB
Nix
Raw Normal View History

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