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

29 lines
776 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, rustPlatform, Foundation }:
rustPlatform.buildRustPackage rec {
pname = "topgrade";
2020-02-06 22:54:46 +01:00
version = "3.9.0";
src = fetchFromGitHub {
owner = "r-darwish";
repo = pname;
rev = "v${version}";
2020-02-06 22:54:46 +01:00
sha256 = "0g9pb4f5skigyahv8kpx7wkvv625lvgnbqz6iq7j7wgixxf4nl1i";
};
# Delete this on next update; see #79975 for details
legacyCargoFetcher = true;
2020-01-07 19:05:18 +01:00
cargoSha256 = "1y85hl7xl60vsj3ivm6pyd6bvk39wqg25bqxfx00r9myha94iqmd";
buildInputs = lib.optional stdenv.isDarwin Foundation;
meta = with lib; {
description = "Upgrade all the things";
homepage = "https://github.com/r-darwish/topgrade";
license = licenses.gpl3;
platforms = platforms.all;
2020-01-16 19:08:43 +01:00
maintainers = with maintainers; [ filalex77 hugoreeves ];
};
}