freshfetch: fix darwin build

This commit is contained in:
figsoda 2021-06-08 20:05:14 -04:00
parent e075fef89f
commit 2640519d63
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

@ -4841,7 +4841,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 { };