cargo-edit: 0.4.1 -> 0.4.2

This commit is contained in:
Oleksii Filonenko
2019-12-05 23:40:48 +02:00
parent 691bebf68b
commit b0ce0c83f6
2 changed files with 6 additions and 140 deletions
@@ -1,33 +1,22 @@
{ stdenv, lib, darwin
, rustPlatform, fetchFromGitHub
, openssl, pkgconfig }:
, openssl, pkg-config, libiconv }:
rustPlatform.buildRustPackage rec {
pname = "cargo-edit";
version = "0.4.1";
version = "0.4.2";
src = fetchFromGitHub {
owner = "killercup";
repo = pname;
rev = "v${version}";
sha256 = "087l8qdwfnnklw6zyjwflxh7hyhh4r7wala36cc4lrj7lag2xm9n";
sha256 = "0y0sq0kll6bg0qrfdyas8rcx5dj50j9f05qx244kv7vqxp2q25jq";
};
cargoSha256 = "1ih1p9jdwr1ymq2p6ipz6rybi17f3qn65kn4bqkgzx36afvpnd5l";
cargoSha256 = "0prd53p20cha2y2qp8dmq0ywd32f6jm8mszdkbi4x606dj9bcgbl";
nativeBuildInputs = lib.optional (!stdenv.isDarwin) pkgconfig;
buildInputs = lib.optional (!stdenv.isDarwin) openssl;
propagatedBuildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
patches = [
# https://github.com/killercup/cargo-edit/pull/362
./no_upgrade_index_in_tests.patch
];
# The default `/build` will fail the test (seems) due to permission problem.
preCheck = ''
export TMPDIR="/tmp"
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
meta = with lib; {
description = "A utility for managing cargo dependencies from the command line";