mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 13:08:39 +03:00
cargo-edit: Fixes build with carnix (#39348)
This commit is contained in:
parent
5957fab607
commit
56023ac0ba
1910
pkgs/tools/package-management/cargo-edit/cargo-edit.nix
Normal file
1910
pkgs/tools/package-management/cargo-edit/cargo-edit.nix
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,28 +1,27 @@
|
||||
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper, zlib, openssl }:
|
||||
{ stdenv, darwin, defaultCrateOverrides, fetchFromGitHub }:
|
||||
|
||||
with rustPlatform;
|
||||
((import ./cargo-edit.nix).cargo_edit {}).override {
|
||||
crateOverrides = defaultCrateOverrides // {
|
||||
cargo-edit = attrs: rec {
|
||||
name = "cargo-edit-${version}";
|
||||
version = "0.2.0";
|
||||
|
||||
buildRustPackage rec {
|
||||
name = "cargo-edit-${version}";
|
||||
version = "0.1.6";
|
||||
src = fetchFromGitHub {
|
||||
owner = "killercup";
|
||||
repo = "cargo-edit";
|
||||
rev = "v${version}";
|
||||
sha256 = "1jxppbb7s50pwg24qxf79fqvm1clwm2zdnv0xlkay7y05nd5bc0c";
|
||||
};
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "killercup";
|
||||
repo = "cargo-edit";
|
||||
rev = "v${version}";
|
||||
sha256 = "16wvix2zkpzl1hhlsvd6mkps8fw5k4n2dvjk9m10gg27pixmiync";
|
||||
};
|
||||
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
||||
|
||||
buildInputs = [ zlib openssl ];
|
||||
|
||||
cargoSha256 = "1m4yb7472g1n900dh3xqvdcywk3v01slj3bkk7bk7a9p5x1kyjfn";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A utility for managing cargo dependencies from the command line";
|
||||
homepage = https://github.com/killercup/cargo-edit;
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ jb55 ];
|
||||
platforms = platforms.all;
|
||||
broken = true;
|
||||
meta = with stdenv.lib; {
|
||||
description = "A utility for managing cargo dependencies from the command line";
|
||||
homepage = https://github.com/killercup/cargo-edit;
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ gerschtli jb55 ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user