2021-01-11 07:54:33 +00:00
|
|
|
|
{ lib, stdenv, fetchurl, util-linux
|
2016-01-25 23:49:50 +00:00
|
|
|
|
, cdparanoia, cdrdao, dvdplusrwtools, flac, lame, mpg123, normalize
|
2016-01-25 23:53:13 +00:00
|
|
|
|
, vorbis-tools, xorriso }:
|
2016-01-25 23:49:50 +00:00
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
|
pname = "bashburn";
|
2016-01-25 23:49:50 +00:00
|
|
|
|
version = "3.1.0";
|
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
|
sha256 = "0g5va5rjdrvacanmqr6pbxk2rl565ahkfbsvxsp1jvhvxvhmv3dp";
|
|
|
|
|
url = "http://bashburn.dose.se/index.php?s=file_download&id=25";
|
2019-08-15 13:41:18 +01:00
|
|
|
|
name = "${pname}-${version}.tar.gz";
|
2016-01-25 23:49:50 +00:00
|
|
|
|
};
|
|
|
|
|
|
2020-11-24 15:29:28 +00:00
|
|
|
|
nativeBuildInputs = [ util-linux ];
|
2016-01-25 23:49:50 +00:00
|
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
|
for path in \
|
|
|
|
|
BB_CDBURNCMD=${xorriso}/bin/"xorriso -as cdrecord" \
|
|
|
|
|
BB_DVDBURNCMD=${dvdplusrwtools}/bin/growisofs \
|
|
|
|
|
BB_ISOCMD=${xorriso}/bin/"xorriso -as mkisofs" \
|
|
|
|
|
BB_DVDBLANK=${dvdplusrwtools}/bin/dvd+rw-format \
|
|
|
|
|
BB_CDIMAGECMD=${cdrdao}/bin/cdrdao \
|
|
|
|
|
BB_CDAUDIORIP=${cdparanoia}/bin/cdparanoia \
|
|
|
|
|
BB_READCD=${xorriso}/bin/"xorriso -as mkisofs" \
|
|
|
|
|
BB_MP3ENC=${lame}/bin/lame \
|
|
|
|
|
BB_MP3DEC=${mpg123}/bin/mpg123 \
|
2016-01-25 23:53:13 +00:00
|
|
|
|
BB_OGGENC=${vorbis-tools}/bin/oggenc \
|
|
|
|
|
BB_OGGDEC=${vorbis-tools}/bin/oggdec \
|
2016-04-10 20:50:33 +01:00
|
|
|
|
BB_FLACCMD=${flac.bin}/bin/flac \
|
2020-11-24 15:29:28 +00:00
|
|
|
|
BB_EJECT=${util-linux}/bin/eject \
|
2016-01-25 23:49:50 +00:00
|
|
|
|
BB_NORMCMD=${normalize}/bin/normalize \
|
|
|
|
|
; do
|
|
|
|
|
echo $path
|
|
|
|
|
sed -i BashBurn.sh \
|
|
|
|
|
-e "s,\(''${path%%=*}:\).*,\1 ''${path#*=},"
|
|
|
|
|
sed -i menus/advanced.sh \
|
|
|
|
|
-e "s,\(''${path%%=*}|\).*\('.*\),\1''${path#*=}\2,"
|
|
|
|
|
done
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
|
sh Install.sh --prefix $out
|
|
|
|
|
'';
|
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
|
meta = with lib; {
|
2016-06-20 11:53:46 +01:00
|
|
|
|
description = "Bash script CD Burner Writer";
|
2016-01-25 23:49:50 +00:00
|
|
|
|
longDescription = ''
|
|
|
|
|
It might not be the best looking application out there, but it works.
|
|
|
|
|
It’s simple, fast and small, and can handle most things you throw at it.
|
|
|
|
|
Currently (and with the right dependencies installed), BashBurn can:
|
|
|
|
|
- burn data CDs/DVDs (Including CDRWs)
|
|
|
|
|
- burn music CDs
|
|
|
|
|
- burn CD/DVD-images
|
|
|
|
|
- rip data/music CDs
|
|
|
|
|
- manipulate ISO-files
|
|
|
|
|
- and probably more...
|
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
|
homepage = "http://bashburn.dose.se/";
|
2016-01-25 23:49:50 +00:00
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
|
platforms = platforms.linux;
|
|
|
|
|
};
|
|
|
|
|
}
|