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