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-09-07 06:44:53 +02:00
|
|
|
version = "5.7.0";
|
2019-11-19 20:18:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "r-darwish";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-09-07 06:44:53 +02:00
|
|
|
sha256 = "0nxqi2rykfxhvn8jzprklsc47iilxp1pmm2f17ikfyf5dgi69whb";
|
2019-11-19 20:18:42 +01:00
|
|
|
};
|
|
|
|
|
2020-09-07 06:44:53 +02:00
|
|
|
cargoSha256 = "05afmz2n006331hc8yi2mq9kj574xi1iq6gr983jj75ix7n40rgg";
|
2019-11-19 20:18:42 +01:00
|
|
|
|
2020-01-16 19:07:29 +01:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin Foundation;
|
|
|
|
|
2020-02-25 20:36:09 +01:00
|
|
|
# TODO: add manpage (topgrade.8) to postInstall on next update
|
|
|
|
|
2020-01-16 19:07:29 +01:00
|
|
|
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;
|
2020-01-16 19:08:43 +01:00
|
|
|
maintainers = with maintainers; [ filalex77 hugoreeves ];
|
2019-11-19 20:18:42 +01:00
|
|
|
};
|
|
|
|
}
|