2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchurl, cmake, pkg-config, darwin }:
|
2010-09-14 16:29:13 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libdiscid";
|
2017-03-15 22:35:49 +01:00
|
|
|
version = "0.6.2";
|
2010-09-14 16:29:13 +02:00
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2017-04-21 02:41:13 +02:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.IOKit ];
|
2021-01-19 22:20:11 +01:00
|
|
|
|
2010-09-14 16:29:13 +02:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "http://ftp.musicbrainz.org/pub/musicbrainz/libdiscid/${pname}-${version}.tar.gz";
|
2017-03-15 22:35:49 +01:00
|
|
|
sha256 = "1f9irlj3dpb5gyfdnb1m4skbjvx4d4hwiz2152f83m0d9jn47r7r";
|
2010-09-14 16:29:13 +02:00
|
|
|
};
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework CoreFoundation -framework IOKit";
|
2017-04-21 02:41:13 +02:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2010-09-14 16:29:13 +02:00
|
|
|
description = "A C library for creating MusicBrainz DiscIDs from audio CDs";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://musicbrainz.org/doc/libdiscid";
|
2015-12-05 22:41:25 +01:00
|
|
|
maintainers = with maintainers; [ ehmry ];
|
2014-08-23 23:51:41 +02:00
|
|
|
license = licenses.lgpl21;
|
2017-04-21 02:41:13 +02:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2010-09-14 16:29:13 +02:00
|
|
|
};
|
|
|
|
}
|