diff --git a/pkgs/tools/misc/topgrade/default.nix b/pkgs/tools/misc/topgrade/default.nix new file mode 100644 index 000000000000..8514b4b9b594 --- /dev/null +++ b/pkgs/tools/misc/topgrade/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "topgrade"; + version = "3.4.0"; + + src = fetchFromGitHub { + owner = "r-darwish"; + repo = pname; + rev = "v${version}"; + sha256 = "14p7lpdp85ay5p2r9npm2adp9njcssi47mb1fh2iyn8lp51d22bi"; + }; + + cargoSha256 = "07h8d8fm20dp9xcz9vic63xnx2rbvanf2ivks1jiv32iy0kgz74p"; + + meta = with stdenv.lib; { + description = "Upgrade all the things"; + homepage = "https://github.com/r-darwish/topgrade"; + license = licenses.gpl3; + platforms = platforms.all; + maintainers = with maintainers; [ filalex77 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4ab6d468eadf..37ab33a01594 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6715,6 +6715,8 @@ in toml2nix = (callPackage ../tools/toml2nix { }).toml2nix { }; + topgrade = callPackage ../tools/misc/topgrade { }; + tor = callPackage ../tools/security/tor { # remove this, when libevent's openssl is upgraded to 1_1_0 or newer. libevent = libevent.override {