Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dmtx-utils: fix darwin build #123033

Merged
merged 1 commit into from May 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion pkgs/tools/graphics/dmtx-utils/default.nix
Expand Up @@ -5,6 +5,7 @@
, pkg-config
, libdmtx
, imagemagick
, Foundation
}:

stdenv.mkDerivation rec {
Expand All @@ -20,7 +21,8 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ autoreconfHook pkg-config ];

buildInputs = [ libdmtx imagemagick ];
buildInputs = [ libdmtx imagemagick ]
++ lib.optional stdenv.isDarwin Foundation;

meta = {
description = "Data matrix command-line utilities";
Expand Down
3 changes: 2 additions & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -22794,7 +22794,8 @@ in

dmrconfig = callPackage ../applications/radio/dmrconfig { };

dmtx-utils = callPackage (callPackage ../tools/graphics/dmtx-utils) {
dmtx-utils = callPackage ../tools/graphics/dmtx-utils {
inherit (darwin.apple_sdk.frameworks) Foundation;
};

inherit (callPackage ../applications/virtualization/docker {})
Expand Down