From 0a6df8a06627cab6e6c558d98eb89494e48c29a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=A4llberg?= Date: Mon, 21 Sep 2020 19:01:14 +0200 Subject: [PATCH] wordnet: Fix darwin build --- pkgs/applications/misc/wordnet/default.nix | 5 +++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/wordnet/default.nix b/pkgs/applications/misc/wordnet/default.nix index 1f0414838adb..f681923978bd 100644 --- a/pkgs/applications/misc/wordnet/default.nix +++ b/pkgs/applications/misc/wordnet/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, tcl, tk, xlibsWrapper, makeWrapper}: +{ stdenv, fetchurl, tcl, tk, Cocoa, xlibsWrapper, makeWrapper }: stdenv.mkDerivation rec { version = "3.0"; @@ -8,7 +8,8 @@ stdenv.mkDerivation rec { sha256 = "08pgjvd2vvmqk3h641x63nxp7wqimb9r30889mkyfh2agc62sjbc"; }; - buildInputs = [tcl tk xlibsWrapper makeWrapper]; + buildInputs = [ tcl tk xlibsWrapper makeWrapper ] + ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa ]; hardeningDisable = [ "format" ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 86a06d852b67..0c4c33216dfb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24047,7 +24047,9 @@ in wofi = callPackage ../applications/misc/wofi { }; - wordnet = callPackage ../applications/misc/wordnet { }; + wordnet = callPackage ../applications/misc/wordnet { + inherit (darwin.apple_sdk.frameworks) Cocoa; + }; wordgrinder = callPackage ../applications/office/wordgrinder { };