-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update packages, fix cargo-workspaces
- Loading branch information
Showing
5 changed files
with
70 additions
and
13 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ lib | ||
, rustPlatform | ||
, fetchCrate | ||
, pkg-config | ||
, libgit2_1_6 | ||
, libssh2 | ||
, openssl | ||
, zlib | ||
, stdenv | ||
, darwin | ||
}: | ||
|
||
rustPlatform.buildRustPackage rec { | ||
pname = "cargo-workspaces"; | ||
version = "0.3.0"; | ||
|
||
src = fetchCrate { | ||
inherit pname version; | ||
hash = "sha256-1wNoMVfouuPRGFGB6XIhgeeWgknxMctrBl5Vfco6qug="; | ||
}; | ||
|
||
cargoHash = "sha256-OJGqIo6mYqXjmQb/2CVVTskecYZretw+K46Fvbu/PcQ="; | ||
|
||
nativeBuildInputs = [ | ||
pkg-config | ||
]; | ||
|
||
buildInputs = [ | ||
libgit2_1_6 | ||
libssh2 | ||
openssl | ||
zlib | ||
] ++ lib.optionals stdenv.isDarwin [ | ||
darwin.apple_sdk.frameworks.Security | ||
darwin.apple_sdk_11_0.frameworks.SystemConfiguration | ||
]; | ||
|
||
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"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters