2020-01-16 19:07:29 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, rustPlatform, Foundation }:
|
2019-11-19 20:18:42 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "topgrade";
|
2020-01-08 09:50:17 +01:00
|
|
|
version = "3.7.1";
|
2019-11-19 20:18:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "r-darwish";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-01-08 09:50:17 +01:00
|
|
|
sha256 = "0vs0gnfs9swlmzsj7m3b88xfzcfy7n68bgm4i94csc3qsbip6m0j";
|
2019-11-19 20:18:42 +01:00
|
|
|
};
|
|
|
|
|
2020-01-07 19:05:18 +01:00
|
|
|
cargoSha256 = "1y85hl7xl60vsj3ivm6pyd6bvk39wqg25bqxfx00r9myha94iqmd";
|
2019-11-19 20:18:42 +01:00
|
|
|
|
2020-01-16 19:07:29 +01:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin Foundation;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2019-11-19 20:18:42 +01:00
|
|
|
description = "Upgrade all the things";
|
|
|
|
homepage = "https://github.com/r-darwish/topgrade";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
2020-01-16 19:08:43 +01:00
|
|
|
maintainers = with maintainers; [ filalex77 hugoreeves ];
|
2019-11-19 20:18:42 +01:00
|
|
|
};
|
|
|
|
}
|