1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 10:56:53 +00:00
nixpkgs/pkgs/development/libraries/libdiscid/default.nix

26 lines
849 B
Nix
Raw Normal View History

2017-04-21 01:41:13 +01:00
{ stdenv, fetchurl, cmake, pkgconfig, darwin }:
stdenv.mkDerivation rec {
2017-03-15 21:35:49 +00:00
name = "libdiscid-${version}";
version = "0.6.2";
2017-03-15 21:35:49 +00:00
nativeBuildInputs = [ cmake pkgconfig ];
2017-04-21 01:41:13 +01:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.IOKit ];
2017-03-15 21:35:49 +00:00
src = fetchurl {
2014-08-23 22:51:41 +01:00
url = "http://ftp.musicbrainz.org/pub/musicbrainz/libdiscid/${name}.tar.gz";
2017-03-15 21:35:49 +00:00
sha256 = "1f9irlj3dpb5gyfdnb1m4skbjvx4d4hwiz2152f83m0d9jn47r7r";
};
2017-04-21 01:41:13 +01:00
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-framework CoreFoundation -framework IOKit";
2014-08-23 22:51:41 +01:00
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 ];
2014-08-23 22:51:41 +01:00
license = licenses.lgpl21;
2017-04-21 01:41:13 +01:00
platforms = platforms.linux ++ platforms.darwin;
};
}