libdiscid: support darwin
This commit is contained in:
parent
0293d0dbec
commit
18b8a22bca
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, cmake, pkgconfig }:
|
||||
{ stdenv, fetchurl, cmake, pkgconfig, darwin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libdiscid-${version}";
|
||||
@ -6,16 +6,20 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ cmake pkgconfig ];
|
||||
|
||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.IOKit ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://ftp.musicbrainz.org/pub/musicbrainz/libdiscid/${name}.tar.gz";
|
||||
sha256 = "1f9irlj3dpb5gyfdnb1m4skbjvx4d4hwiz2152f83m0d9jn47r7r";
|
||||
};
|
||||
|
||||
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-framework CoreFoundation -framework IOKit";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A C library for creating MusicBrainz DiscIDs from audio CDs";
|
||||
homepage = http://musicbrainz.org/doc/libdiscid;
|
||||
maintainers = with maintainers; [ ehmry ];
|
||||
license = licenses.lgpl21;
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user