idutils: fix build for darwin

This commit is contained in:
Anthony Roussel 2023-11-10 12:07:59 +01:00
parent 4da6bff3af
commit 74800f5720
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E

View File

@ -1,4 +1,4 @@
{ fetchurl, lib, stdenv, emacs, gnulib, autoconf, bison, automake, gettext, gperf, texinfo, perl, rsync}:
{ fetchurl, lib, stdenv, emacs, gnulib, autoconf, bison, automake, gettext, gperf, texinfo, perl, rsync, darwin }:
stdenv.mkDerivation rec {
pname = "idutils";
@ -16,7 +16,12 @@ stdenv.mkDerivation rec {
./bootstrap --force --gnulib-srcdir=${gnulib} --skip-po --bootstrap-sync --no-git
'';
buildInputs = lib.optional stdenv.isLinux emacs;
buildInputs = lib.optionals stdenv.isLinux [
emacs
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreServices
];
nativeBuildInputs = [ gnulib autoconf bison automake gettext gperf texinfo perl rsync ];
doCheck = !stdenv.isDarwin;