2020-01-16 18:07:29 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, rustPlatform, Foundation }:
|
2019-11-19 19:18:42 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "topgrade";
|
2020-06-22 09:53:50 +01:00
|
|
|
version = "4.8.0";
|
2019-11-19 19:18:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "r-darwish";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-06-22 09:53:50 +01:00
|
|
|
sha256 = "1rskk3cb253xbdn42ccm5ks39xac4q1hgz67nfi1hpwnavpx5g6p";
|
2019-11-19 19:18:42 +00:00
|
|
|
};
|
|
|
|
|
2020-06-22 09:53:50 +01:00
|
|
|
cargoSha256 = "0d00r52qhahdx1yylpri7cm85csvy0bwzspwgwqwgilxcfnf5a16";
|
2019-11-19 19:18:42 +00:00
|
|
|
|
2020-01-16 18:07:29 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin Foundation;
|
|
|
|
|
2020-02-25 19:36:09 +00:00
|
|
|
# TODO: add manpage (topgrade.8) to postInstall on next update
|
|
|
|
|
2020-01-16 18:07:29 +00:00
|
|
|
meta = with lib; {
|
2019-11-19 19:18:42 +00:00
|
|
|
description = "Upgrade all the things";
|
|
|
|
homepage = "https://github.com/r-darwish/topgrade";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
2020-01-16 18:08:43 +00:00
|
|
|
maintainers = with maintainers; [ filalex77 hugoreeves ];
|
2019-11-19 19:18:42 +00:00
|
|
|
};
|
|
|
|
}
|