Unverified Commit 74800f57 authored by Anthony Roussel's avatar Anthony Roussel
Browse files

idutils: fix build for darwin

parent 4da6bff3
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
{ 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;