Merge pull request #126281 from figsoda/freshfetch

freshfetch: fix darwin build
This commit is contained in:
Sandro 2021-06-14 01:01:29 +02:00 committed by GitHub
commit 909d9dc5fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 2 deletions

View file

@ -1,4 +1,14 @@
{ fetchFromGitHub, fetchurl, lib, rustPlatform }:
{ lib
, stdenv
, fetchFromGitHub
, fetchurl
, rustPlatform
, AppKit
, CoreFoundation
, DiskArbitration
, Foundation
, IOKit
}:
rustPlatform.buildRustPackage rec {
pname = "freshfetch";
@ -22,6 +32,14 @@ rustPlatform.buildRustPackage rec {
# freshfetch depends on rust nightly features
RUSTC_BOOTSTRAP = 1;
buildInputs = lib.optionals stdenv.isDarwin [
AppKit
CoreFoundation
DiskArbitration
Foundation
IOKit
];
meta = with lib; {
description = "A fresh take on neofetch";
homepage = "https://github.com/k4rakara/freshfetch";

View file

@ -4855,7 +4855,9 @@ in
frescobaldi = python3Packages.callPackage ../misc/frescobaldi {};
freshfetch = callPackage ../tools/misc/freshfetch { };
freshfetch = callPackage ../tools/misc/freshfetch {
inherit (darwin.apple_sdk.frameworks) AppKit CoreFoundation DiskArbitration Foundation IOKit;
};
frostwire = callPackage ../applications/networking/p2p/frostwire { };
frostwire-bin = callPackage ../applications/networking/p2p/frostwire/frostwire-bin.nix { };