about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libcddb
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libcddb')
-rw-r--r--nixpkgs/pkgs/development/libraries/libcddb/default.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libcddb/default.nix b/nixpkgs/pkgs/development/libraries/libcddb/default.nix
new file mode 100644
index 000000000000..591369df83f1
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libcddb/default.nix
@@ -0,0 +1,21 @@
+{ stdenv, fetchurl, libiconv }:
+
+stdenv.mkDerivation rec {
+  name = "libcddb-1.3.2";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/libcddb/${name}.tar.bz2";
+    sha256 = "0fr21a7vprdyy1bq6s99m0x420c9jm5fipsd63pqv8qyfkhhxkim";
+  };
+
+  buildInputs = stdenv.lib.optional stdenv.isDarwin libiconv;
+
+  doCheck = false; # fails 3 of 5 tests with locale errors
+
+  meta = with stdenv.lib; {
+    description = "C library to access data on a CDDB server (freedb.org)";
+    homepage = http://libcddb.sourceforge.net/;
+    license = licenses.lgpl2Plus;
+    platforms = platforms.linux ++ platforms.darwin;
+  };
+}