2020-01-09 15:24:56 +01:00
|
|
|
{ stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, curl
|
|
|
|
, libgit2
|
|
|
|
, libssh2
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, zlib }:
|
2018-08-02 10:28:57 +02:00
|
|
|
|
2020-01-09 15:24:56 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-update";
|
2020-03-11 22:35:18 +01:00
|
|
|
version = "3.0.0";
|
2018-08-02 10:28:57 +02:00
|
|
|
|
2020-01-09 15:24:56 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nabijaczleweli";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-03-11 22:35:18 +01:00
|
|
|
sha256 = "1jyfv8aa0gp67pvv8l2vkqq4j9rgjl4rq1wn4nqxb44gmvkg15l3";
|
2020-01-09 15:24:56 +01:00
|
|
|
};
|
|
|
|
|
2020-03-11 22:35:18 +01:00
|
|
|
cargoPatches = [ ./0001-Generate-lockfile-for-cargo-update-v3.0.0.patch ];
|
|
|
|
cargoSha256 = "034v1ql5k3n3rgi3aqszkybvv3vc80v263c9nlwxcwbswsh9jpp1";
|
2018-08-02 10:28:57 +02:00
|
|
|
|
2020-03-29 08:02:57 +02:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ libgit2 libssh2 openssl zlib ]
|
2020-01-09 15:24:56 +01:00
|
|
|
++ stdenv.lib.optional stdenv.isDarwin curl;
|
2018-08-02 10:28:57 +02:00
|
|
|
|
2020-01-09 15:24:56 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A cargo subcommand for checking and applying updates to installed executables";
|
|
|
|
homepage = "https://github.com/nabijaczleweli/cargo-update";
|
|
|
|
license = licenses.mit;
|
2020-01-09 15:25:20 +01:00
|
|
|
maintainers = with maintainers; [ gerschtli filalex77 ];
|
2018-08-02 10:28:57 +02:00
|
|
|
};
|
|
|
|
}
|