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

39 lines
832 B
Nix
Raw Normal View History

2022-04-28 11:13:42 +02:00
{ stdenv
, lib
, fetchFromGitHub
, rustPlatform
, Cocoa
, Foundation
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
pname = "topgrade";
2022-04-28 11:13:32 +02:00
version = "8.3.1";
src = fetchFromGitHub {
owner = "r-darwish";
repo = pname;
rev = "v${version}";
2022-04-28 11:13:32 +02:00
sha256 = "sha256-EsC17VUQDgrhCU26fsqf2zXOTKa/WeKHiWG0Zn1Qao4=";
};
2022-04-28 11:13:32 +02:00
cargoSha256 = "sha256-e5QJw5yY+ZkijqoqRauA5ncvLWiRlalYZCwSG5U7uDk=";
2022-04-28 11:13:42 +02:00
buildInputs = lib.optionals stdenv.isDarwin [ Cocoa Foundation ];
2020-10-31 00:32:09 +01:00
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installManPage topgrade.8
'';
2020-02-25 20:36:09 +01:00
meta = with lib; {
description = "Upgrade all the things";
homepage = "https://github.com/r-darwish/topgrade";
license = licenses.gpl3Only;
2022-04-28 11:14:41 +02:00
maintainers = with maintainers; [ SuperSandro2000 ];
2022-04-28 11:13:42 +02:00
broken = stdenv.isDarwin;
};
}