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-08-11 17:50:36 +02:00
version = "5.4.0";
src = fetchFromGitHub {
owner = "r-darwish";
repo = pname;
rev = "v${version}";
2020-08-11 17:50:36 +02:00
sha256 = "1v57dqkrh67cmj1ish650z8yk737hm1qynqr5yv0vlna86gwhrhs";
};
2020-08-11 17:50:36 +02:00
cargoSha256 = "00vxrv8lbdwwbdbaqb4rq0w3bc8n9qwk9zgb1j656lyswib7g1d3";
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 ];
};
}