1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
nixpkgs/pkgs/tools/misc/topgrade/default.nix

28 lines
757 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, rustPlatform, Foundation }:
rustPlatform.buildRustPackage rec {
pname = "topgrade";
2020-05-14 08:49:17 +01:00
version = "4.5.0";
src = fetchFromGitHub {
owner = "r-darwish";
repo = pname;
rev = "v${version}";
2020-05-14 08:49:17 +01:00
sha256 = "0df79vlbclv1qx4zwir728c6ggqfawxh2x1py16m5q0ga1hd799j";
};
2020-05-14 08:49:17 +01:00
cargoSha256 = "0wwxh71i94h68sryckbvrr43gd19qjcs0cgcpycnimkhdcdy8nlj";
buildInputs = lib.optional stdenv.isDarwin Foundation;
2020-02-25 19:36:09 +00: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;
platforms = platforms.all;
2020-01-16 18:08:43 +00:00
maintainers = with maintainers; [ filalex77 hugoreeves ];
};
}