diff options
author | happysalada <raphael@megzari.com> | 2021-07-22 14:57:49 +0900 |
---|---|---|
committer | Raphael Megzari <raphael@megzari.com> | 2021-07-22 16:49:34 +0900 |
commit | 94675cc77a57461bb9b25934e3cf9a574d799382 (patch) | |
tree | 3d93c4204313007c1ef54a7492d3118e7b68402a | |
parent | 6337261453766419e8369a93923dbce0d41ebd22 (diff) |
dua: fix darwin build
-rw-r--r-- | pkgs/tools/misc/dua/default.nix | 4 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/tools/misc/dua/default.nix b/pkgs/tools/misc/dua/default.nix index 627f223617946..0c3d319f2a70c 100644 --- a/pkgs/tools/misc/dua/default.nix +++ b/pkgs/tools/misc/dua/default.nix @@ -1,10 +1,10 @@ -{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv }: +{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv, Foundation }: rustPlatform.buildRustPackage rec { pname = "dua"; version = "2.14.2"; - buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv Foundation ]; src = fetchFromGitHub { owner = "Byron"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ed1329180b20c..3c5ae15d23e76 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2565,7 +2565,9 @@ in dtrx = callPackage ../tools/compression/dtrx { }; - dua = callPackage ../tools/misc/dua { }; + dua = callPackage ../tools/misc/dua { + inherit (darwin.apple_sdk.frameworks) Foundation; + }; duf = callPackage ../tools/misc/duf { }; |