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