dmtx-utils: fix darwin build (#123033)

authored by Stéphan Kochen and committed by GitHub bb24db68 4bfa8bdd

+5 -2
+3 -1
pkgs/tools/graphics/dmtx-utils/default.nix
··· 5 5 , pkg-config 6 6 , libdmtx 7 7 , imagemagick 8 + , Foundation 8 9 }: 9 10 10 11 stdenv.mkDerivation rec { ··· 20 21 21 22 nativeBuildInputs = [ autoreconfHook pkg-config ]; 22 23 23 - buildInputs = [ libdmtx imagemagick ]; 24 + buildInputs = [ libdmtx imagemagick ] 25 + ++ lib.optional stdenv.isDarwin Foundation; 24 26 25 27 meta = { 26 28 description = "Data matrix command-line utilities";
+2 -1
pkgs/top-level/all-packages.nix
··· 22794 22794 22795 22795 dmrconfig = callPackage ../applications/radio/dmrconfig { }; 22796 22796 22797 - dmtx-utils = callPackage (callPackage ../tools/graphics/dmtx-utils) { 22797 + dmtx-utils = callPackage ../tools/graphics/dmtx-utils { 22798 + inherit (darwin.apple_sdk.frameworks) Foundation; 22798 22799 }; 22799 22800 22800 22801 inherit (callPackage ../applications/virtualization/docker {})