topgrade: fix, add darwin Foundation framework (#77700)

topgrade: fix, add darwin Foundation framework
This commit is contained in:
Wael Nasreddine 2020-01-16 18:25:16 -08:00 committed by GitHub
commit 2628f20267
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, rustPlatform }:
{ stdenv, lib, fetchFromGitHub, rustPlatform, Foundation }:
rustPlatform.buildRustPackage rec {
pname = "topgrade";
@ -13,11 +13,13 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "1y85hl7xl60vsj3ivm6pyd6bvk39wqg25bqxfx00r9myha94iqmd";
meta = with stdenv.lib; {
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;
maintainers = with maintainers; [ filalex77 ];
maintainers = with maintainers; [ filalex77 hugoreeves ];
};
}

View File

@ -6798,7 +6798,9 @@ in
toml2nix = (callPackage ../tools/toml2nix { }).toml2nix { };
topgrade = callPackage ../tools/misc/topgrade { };
topgrade = callPackage ../tools/misc/topgrade {
inherit (darwin.apple_sdk.frameworks) Foundation;
};
tor = callPackage ../tools/security/tor {
# remove this, when libevent's openssl is upgraded to 1_1_0 or newer.