nixpkgs/pkgs/tools/misc/topgrade/default.nix

27 lines
726 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, rustPlatform, Foundation }:
rustPlatform.buildRustPackage rec {
pname = "topgrade";
2020-09-07 06:44:53 +02:00
version = "5.7.0";
src = fetchFromGitHub {
owner = "r-darwish";
repo = pname;
rev = "v${version}";
2020-09-07 06:44:53 +02:00
sha256 = "0nxqi2rykfxhvn8jzprklsc47iilxp1pmm2f17ikfyf5dgi69whb";
};
2020-09-07 06:44:53 +02:00
cargoSha256 = "05afmz2n006331hc8yi2mq9kj574xi1iq6gr983jj75ix7n40rgg";
buildInputs = lib.optional stdenv.isDarwin Foundation;
2020-02-25 20:36:09 +01:00
# 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;
2020-01-16 19:08:43 +01:00
maintainers = with maintainers; [ filalex77 hugoreeves ];
};
}