depot/third_party/nixpkgs/pkgs/tools/misc/topgrade/default.nix
Default email 66604c92c1 Project import generated by Copybara.
GitOrigin-RevId: 32b8ed738096bafb4cdb7f70347a0f63f9f40151
2020-05-15 23:57:56 +02:00

27 lines
757 B
Nix

{ stdenv, lib, fetchFromGitHub, rustPlatform, Foundation }:
rustPlatform.buildRustPackage rec {
pname = "topgrade";
version = "4.5.0";
src = fetchFromGitHub {
owner = "r-darwish";
repo = pname;
rev = "v${version}";
sha256 = "0df79vlbclv1qx4zwir728c6ggqfawxh2x1py16m5q0ga1hd799j";
};
cargoSha256 = "0wwxh71i94h68sryckbvrr43gd19qjcs0cgcpycnimkhdcdy8nlj";
buildInputs = lib.optional stdenv.isDarwin Foundation;
# TODO: add manpage (topgrade.8) to postInstall on next update
meta = with lib; {
description = "Upgrade all the things";
homepage = "https://github.com/r-darwish/topgrade";
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ filalex77 hugoreeves ];
};
}