3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/cd-dvd/bashburn/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00

64 lines
2 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib, stdenv, fetchurl, util-linux
, cdparanoia, cdrdao, dvdplusrwtools, flac, lame, mpg123, normalize
, vorbis-tools, xorriso }:
stdenv.mkDerivation rec {
pname = "bashburn";
version = "3.1.0";
src = fetchurl {
sha256 = "0g5va5rjdrvacanmqr6pbxk2rl565ahkfbsvxsp1jvhvxvhmv3dp";
url = "http://bashburn.dose.se/index.php?s=file_download&id=25";
name = "${pname}-${version}.tar.gz";
};
nativeBuildInputs = [ util-linux ];
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 \
BB_OGGENC=${vorbis-tools}/bin/oggenc \
BB_OGGDEC=${vorbis-tools}/bin/oggdec \
BB_FLACCMD=${flac.bin}/bin/flac \
BB_EJECT=${util-linux}/bin/eject \
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
'';
meta = with lib; {
description = "Bash script CD Burner Writer";
longDescription = ''
It might not be the best looking application out there, but it works.
Its 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...
'';
homepage = "http://bashburn.dose.se/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}