depot/third_party/nixpkgs/pkgs/tools/misc/topgrade/default.nix
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

27 lines
757 B
Nix

{ stdenv, lib, fetchFromGitHub, rustPlatform, Foundation }:
rustPlatform.buildRustPackage rec {
pname = "topgrade";
version = "5.1.0";
src = fetchFromGitHub {
owner = "r-darwish";
repo = pname;
rev = "v${version}";
sha256 = "0cnzla5x4y4j658zihlnrghry4c3695gi0marwygh7vcfxqh0vlh";
};
cargoSha256 = "16y71dd775knkq04x6qjs6zf3b9z12vz5xhqm18sl2bm3sbsq4pc";
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 ];
};
}