depot/third_party/nixpkgs/pkgs/development/libraries/libdiscid/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

25 lines
811 B
Nix

{ lib, stdenv, fetchurl, cmake, pkg-config, darwin }:
stdenv.mkDerivation rec {
pname = "libdiscid";
version = "0.6.4";
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.IOKit ];
src = fetchurl {
url = "http://ftp.musicbrainz.org/pub/musicbrainz/${pname}/${pname}-${version}.tar.gz";
sha256 = "sha256-3V6PHJrq1ELiO3SanMkzY3LmLoitcHmitiiVsDkMsoI=";
};
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework CoreFoundation -framework IOKit";
meta = with lib; {
description = "C library for creating MusicBrainz DiscIDs from audio CDs";
homepage = "http://musicbrainz.org/doc/libdiscid";
maintainers = with maintainers; [ ehmry ];
license = licenses.lgpl21;
platforms = platforms.all;
};
}