3
0
Fork 0
forked from mirrors/nixpkgs
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
857 B
Nix
Raw Normal View History

2022-04-28 10:13:42 +01:00
{ stdenv
, lib
, fetchFromGitHub
, rustPlatform
, Cocoa
, Foundation
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
pname = "topgrade";
2022-05-28 21:49:10 +01:00
version = "9.0.1";
src = fetchFromGitHub {
owner = "r-darwish";
repo = pname;
rev = "v${version}";
2022-05-28 21:49:10 +01:00
sha256 = "sha256-9zP+rWhaK4fC2Qhd0oq9WVvCkvryooYo09k7016Rbxw=";
};
2022-07-02 09:42:35 +01:00
cargoPatches = [ ./darwin-cargo-lock.patch ];
cargoSha256 = "sha256-rkcEF/INNVn9K4p0/1M++l6lnjtZp1Srx57gkaqcKek=";
2022-04-28 10:13:42 +01: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-07-02 09:42:35 +01:00
maintainers = with maintainers; [ SuperSandro2000 xyenon ];
};
}