nixpkgs/pkgs/tools/package-management/cargo-update/default.nix

38 lines
935 B
Nix
Raw Normal View History

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";
version = "2.5.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}";
sha256 = "143aczay7i3zbhbvv4cjf6hns5w8j52rfdaq8ff0r8v3qghd2972";
};
cargoPatches = [ ./cargo-lock.patch ];
cargoSha256 = "0mxc752hmd7r29camq4f4qzwx0w008rqlq07j2r26z4ygvlrkc3a";
2018-08-02 10:28:57 +02:00
2020-01-09 15:24:56 +01:00
nativeBuildInputs = [ cmake ];
buildInputs = [ libgit2 libssh2 openssl pkg-config zlib ]
++ 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;
maintainers = with maintainers; [ gerschtli ];
platforms = platforms.all;
2018-08-02 10:28:57 +02:00
};
}