31 lines
800 B
Nix
31 lines
800 B
Nix
{ stdenv, lib, fetchFromGitHub, rustPlatform, Foundation, installShellFiles }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "topgrade";
|
|
version = "6.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "r-darwish";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-5S9mKmnrycrL7DFq8duWVbzEHQfiXAXQYcc3bdiVu1k=";
|
|
};
|
|
|
|
cargoSha256 = "0sbkqdwfsfb7q52a9vh5lmggrc8ny2l0xr4qx3m42xm0h64f3y6n";
|
|
|
|
buildInputs = lib.optional stdenv.isDarwin Foundation;
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
installManPage topgrade.8
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Upgrade all the things";
|
|
homepage = "https://github.com/r-darwish/topgrade";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ Br1ght0ne hugoreeves SuperSandro2000 ];
|
|
};
|
|
}
|