@@ -0,0 +1,64 @@
1+{ stdenv, fetchurl, utillinux
2+, cdparanoia, cdrdao, dvdplusrwtools, flac, lame, mpg123, normalize
3+, vorbisTools, xorriso }:
4+
5+stdenv.mkDerivation rec {
6+ name = "bashburn-${version}";
7+ version = "3.1.0";
8+
9+ src = fetchurl {
10+ sha256 = "0g5va5rjdrvacanmqr6pbxk2rl565ahkfbsvxsp1jvhvxvhmv3dp";
11+ url = "http://bashburn.dose.se/index.php?s=file_download&id=25";
12+ name = "${name}.tar.gz";
13+ };
14+
15+ nativeBuildInputs = [ utillinux ];
16+
17+ postPatch = ''
18+ for path in \
19+ BB_CDBURNCMD=${xorriso}/bin/"xorriso -as cdrecord" \
20+ BB_DVDBURNCMD=${dvdplusrwtools}/bin/growisofs \
21+ BB_ISOCMD=${xorriso}/bin/"xorriso -as mkisofs" \
22+ BB_DVDBLANK=${dvdplusrwtools}/bin/dvd+rw-format \
23+ BB_CDIMAGECMD=${cdrdao}/bin/cdrdao \
24+ BB_CDAUDIORIP=${cdparanoia}/bin/cdparanoia \
25+ BB_READCD=${xorriso}/bin/"xorriso -as mkisofs" \
26+ BB_MP3ENC=${lame}/bin/lame \
27+ BB_MP3DEC=${mpg123}/bin/mpg123 \
28+ BB_OGGENC=${vorbisTools}/bin/oggenc \
29+ BB_OGGDEC=${vorbisTools}/bin/oggdec \
30+ BB_FLACCMD=${flac}/bin/flac \
31+ BB_EJECT=${utillinux}/bin/eject \
32+ BB_NORMCMD=${normalize}/bin/normalize \
33+ ; do
34+ echo $path
35+ sed -i BashBurn.sh \
36+ -e "s,\(''${path%%=*}:\).*,\1 ''${path#*=},"
37+ sed -i menus/advanced.sh \
38+ -e "s,\(''${path%%=*}|\).*\('.*\),\1''${path#*=}\2,"
39+ done
40+ '';
41+
42+ installPhase = ''
43+ sh Install.sh --prefix $out
44+ '';
45+
46+ meta = with stdenv.lib; {
47+ description = "bash script CD Burner Writer";
48+ longDescription = ''
49+ It might not be the best looking application out there, but it works.
50+ It’s simple, fast and small, and can handle most things you throw at it.
51+ Currently (and with the right dependencies installed), BashBurn can:
52+ - burn data CDs/DVDs (Including CDRWs)
53+ - burn music CDs
54+ - burn CD/DVD-images
55+ - rip data/music CDs
56+ - manipulate ISO-files
57+ - and probably more...
58+ '';
59+ homepage = http://bashburn.dose.se/;
60+ license = licenses.gpl2Plus;
61+ platforms = platforms.linux;
62+ maintainers = with maintainers; [ nckx ];
63+ };
64+}