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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
832 B
Nix
Raw Normal View History

2022-04-28 09:13:42 +00:00
{ stdenv
, lib
, fetchFromGitHub
, rustPlatform
, Cocoa
, Foundation
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
pname = "topgrade";
2022-04-28 09:13:32 +00:00
version = "8.3.1";
src = fetchFromGitHub {
owner = "r-darwish";
repo = pname;
rev = "v${version}";
2022-04-28 09:13:32 +00:00
sha256 = "sha256-EsC17VUQDgrhCU26fsqf2zXOTKa/WeKHiWG0Zn1Qao4=";
};
2022-04-28 09:13:32 +00:00
cargoSha256 = "sha256-e5QJw5yY+ZkijqoqRauA5ncvLWiRlalYZCwSG5U7uDk=";
2022-04-28 09:13:42 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ Cocoa Foundation ];
2020-10-30 23:32:09 +00:00
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installManPage topgrade.8
'';
2020-02-25 19:36:09 +00:00
meta = with lib; {
description = "Upgrade all the things";
homepage = "https://github.com/r-darwish/topgrade";
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;
};
}