Add cd-discid, a utility to retrieve a CD's CDDB ID.
svn path=/nixpkgs/trunk/; revision=11903
This commit is contained in:
parent
2d15d345ec
commit
53be6f7ba4
31
pkgs/applications/audio/cd-discid/default.nix
Normal file
31
pkgs/applications/audio/cd-discid/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ fetchurl, stdenv }:
|
||||
|
||||
let version = "0.9";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "cd-discid-${version}";
|
||||
src = fetchurl {
|
||||
url = "mirror://debian/pool/main/c/cd-discid/cd-discid_${version}.orig.tar.gz";
|
||||
sha256 = "1fx2ky1pb07l1r0bldpw16wdsfzw7a0093ib9v66kmilwy2sq5s9";
|
||||
};
|
||||
|
||||
patches = [ ./install.patch ];
|
||||
|
||||
configurePhase = ''
|
||||
sed -i "s|^[[:blank:]]*prefix *=.*$|prefix = $out|g ;
|
||||
s|^[[:blank:]]*INSTALL *=.*$|INSTALL = install -c|g" \
|
||||
"Makefile";
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://lly.org/~rcw/cd-discid/;
|
||||
licence = "GPLv2+";
|
||||
description = "cd-discid, a command-line utility to retrieve a disc's CDDB ID";
|
||||
|
||||
longDescription = ''
|
||||
cd-discid is a backend utility to get CDDB discid information
|
||||
from a CD-ROM disc. It was originally designed for cdgrab (now
|
||||
abcde), but can be used for any purpose requiring CDDB data.
|
||||
'';
|
||||
};
|
||||
}
|
14
pkgs/applications/audio/cd-discid/install.patch
Normal file
14
pkgs/applications/audio/cd-discid/install.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- cd-discid-0.9/Makefile 2003-01-05 21:18:07.000000000 +0100
|
||||
+++ cd-discid-0.9/Makefile 2008-05-26 22:14:56.000000000 +0200
|
||||
@@ -32,9 +32,9 @@ clean:
|
||||
|
||||
install: cd-discid
|
||||
$(INSTALL) -d -m 755 $(bindir)
|
||||
- $(INSTALL) -s -m 755 -o 0 cd-discid $(bindir)
|
||||
+ $(INSTALL) -s -m 755 cd-discid $(bindir)
|
||||
$(INSTALL) -d -m 755 $(mandir)
|
||||
- $(INSTALL) -m 644 -o 0 cd-discid.1 $(mandir)
|
||||
+ $(INSTALL) -m 644 cd-discid.1 $(mandir)
|
||||
|
||||
tarball:
|
||||
@cd .. && tar czvf cd-discid_$(VERSION).orig.tar.gz \
|
|
@ -5056,6 +5056,10 @@ let pkgs = rec {
|
|||
inherit fetchurl stdenv ncurses;
|
||||
};
|
||||
|
||||
cddiscid = import ../applications/audio/cd-discid {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
cdparanoia = cdparanoiaIII;
|
||||
|
||||
cdparanoiaIII = import ../applications/audio/cdparanoia {
|
||||
|
|
Loading…
Reference in a new issue