cd-discid: fix darwin build

This commit is contained in:
Matthew Bauer 2016-08-11 22:14:20 -05:00
parent 69a5e300a6
commit 554b06522e
2 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,5 @@
{ fetchurl, stdenv }:
{ fetchurl, stdenv
, IOKit ? null }:
stdenv.mkDerivation rec {
name = "cd-discid-${version}";
@ -11,6 +12,9 @@ stdenv.mkDerivation rec {
installFlags = "PREFIX=$(out) INSTALL=install";
buildInputs = []
++ stdenv.lib.optional stdenv.isDarwin [ IOKit ];
meta = with stdenv.lib; {
homepage = http://linukz.org/cd-discid.shtml;
license = licenses.gpl2Plus;

View File

@ -12487,7 +12487,9 @@ in
cbc = callPackage ../applications/science/math/cbc { };
cddiscid = callPackage ../applications/audio/cd-discid { };
cddiscid = callPackage ../applications/audio/cd-discid {
inherit (darwin) IOKit;
};
cdparanoia = self.cdparanoiaIII;