mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
cargo-workspaces: init at 0.2.35
This commit is contained in:
parent
06a6d7ae7a
commit
c5d03ea1cf
51
pkgs/development/tools/rust/cargo-workspaces/default.nix
Normal file
51
pkgs/development/tools/rust/cargo-workspaces/default.nix
Normal file
@ -0,0 +1,51 @@
|
||||
{ fetchCrate
|
||||
, lib
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
, openssl
|
||||
, zlib
|
||||
, stdenv
|
||||
, darwin
|
||||
, libssh2
|
||||
, libgit2
|
||||
, IOKit
|
||||
, Security
|
||||
, CoreFoundation
|
||||
, AppKit
|
||||
, System
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cargo-workspaces";
|
||||
version = "0.2.35";
|
||||
|
||||
src = fetchCrate {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-MHoVeutoMaHHl1uxv52NOuvXsssqDuyfHTuyTqg9y+U=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-wUVNsUx7JS5icjxbz3CV1lNUvuuL+gTL2QzuE+030WU=";
|
||||
verifyCargoDeps = true;
|
||||
|
||||
# needed to get libssh2/libgit2 to link properly
|
||||
LIBGIT2_SYS_USE_PKG_CONFIG = true;
|
||||
LIBSSH2_SYS_USE_PKG_CONFIG = true;
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ openssl zlib libssh2 libgit2 ] ++ (
|
||||
lib.optionals stdenv.isDarwin ([ IOKit Security CoreFoundation AppKit ]
|
||||
++ (lib.optionals stdenv.isAarch64 [ System ]))
|
||||
);
|
||||
|
||||
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";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ macalinao ];
|
||||
};
|
||||
}
|
@ -14478,6 +14478,9 @@ with pkgs;
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices Foundation;
|
||||
};
|
||||
cargo-wipe = callPackage ../development/tools/rust/cargo-wipe { };
|
||||
cargo-workspaces = callPackage ../development/tools/rust/cargo-workspaces {
|
||||
inherit (darwin.apple_sdk.frameworks) IOKit Security CoreFoundation AppKit System;
|
||||
};
|
||||
cargo-xbuild = callPackage ../development/tools/rust/cargo-xbuild { };
|
||||
cargo-generate = callPackage ../development/tools/rust/cargo-generate {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
|
Loading…
Reference in New Issue
Block a user