From c80ce6e83b45fa2decab5a415a29be189816eeda Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Wed, 19 Jan 2005 21:02:19 +0000 Subject: [PATCH] cdparanoia-III svn path=/nixpkgs/trunk/; revision=2060 --- .../applications/audio/cdparanoia/default.nix | 11 +++++ pkgs/applications/audio/cdparanoia/fix.patch | 46 +++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 pkgs/applications/audio/cdparanoia/default.nix create mode 100644 pkgs/applications/audio/cdparanoia/fix.patch diff --git a/pkgs/applications/audio/cdparanoia/default.nix b/pkgs/applications/audio/cdparanoia/default.nix new file mode 100644 index 00000000000..0d741899cdf --- /dev/null +++ b/pkgs/applications/audio/cdparanoia/default.nix @@ -0,0 +1,11 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "cdparanoia-III-alpha9.8"; + src = fetchurl { + url = http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-alpha9.8.src.tgz ; + md5 = "7218e778b5970a86c958e597f952f193" ; + }; + + patches = [./fix.patch]; +} diff --git a/pkgs/applications/audio/cdparanoia/fix.patch b/pkgs/applications/audio/cdparanoia/fix.patch new file mode 100644 index 00000000000..4a1c526c7d8 --- /dev/null +++ b/pkgs/applications/audio/cdparanoia/fix.patch @@ -0,0 +1,46 @@ +*** cdparanoia-III-alpha9.8/interface/utils.h Thu Apr 20 00:41:04 2000 +--- cdparanoia-III-alpha9.8-old/interface/utils.h Wed Jan 19 21:44:08 2005 +*************** +*** 110,117 **** + case CDDA_MESSAGE_LOGIT: + d->errorbuf=catstring(d->errorbuf,s); + break; +- case CDDA_MESSAGE_FORGETIT: +- default: + } + } + } +--- 110,115 ---- +*************** +*** 125,132 **** + case CDDA_MESSAGE_LOGIT: + d->messagebuf=catstring(d->messagebuf,s); + break; +- case CDDA_MESSAGE_FORGETIT: +- default: + } + } + } +--- 123,128 ---- +*************** +*** 167,174 **** + } + } + break; +- case CDDA_MESSAGE_FORGETIT: +- default: + } + } + if(malloced)free(buffer); +--- 163,168 ---- +*************** +*** 203,210 **** + if(!malloced)*messages=catstring(*messages,"\n"); + } + break; +- case CDDA_MESSAGE_FORGETIT: +- default: + } + } + if(malloced)free(buffer); +--- 197,202 ----