mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
268c77c55d
Builds fine for FreeBSD and NetBSD, and website mentions Windows and "generic" support.
26 lines
815 B
Nix
26 lines
815 B
Nix
{ lib, stdenv, fetchurl, cmake, pkg-config, darwin }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libdiscid";
|
|
version = "0.6.2";
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.IOKit ];
|
|
|
|
src = fetchurl {
|
|
url = "http://ftp.musicbrainz.org/pub/musicbrainz/libdiscid/${pname}-${version}.tar.gz";
|
|
sha256 = "1f9irlj3dpb5gyfdnb1m4skbjvx4d4hwiz2152f83m0d9jn47r7r";
|
|
};
|
|
|
|
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework CoreFoundation -framework IOKit";
|
|
|
|
meta = with 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.all;
|
|
};
|
|
}
|