topgrade: fix, add darwin Foundation framework

This commit is contained in:
Hugo Reeves 2020-01-17 07:07:29 +13:00
parent ece829033b
commit 8bef4113ce
No known key found for this signature in database
GPG key ID: EDD6758937E39B64
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, rustPlatform }:
{ stdenv, lib, fetchFromGitHub, rustPlatform, Foundation }:
rustPlatform.buildRustPackage rec {
pname = "topgrade";
@ -13,7 +13,9 @@ 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;

View file

@ -6790,7 +6790,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.