···11{ stdenv, fetchurl, pkgconfig, which, gettext, intltool
22, glib, gtk2
33+, enableSoftening ? true
34}:
4556stdenv.mkDerivation rec {
···1011 sha256 = "e9787dea39aeafa38b26604752561bc895083c17b588489d857ac05c58be196b";
1112 };
12131414+ patches = stdenv.lib.optional enableSoftening [
1515+ ./encryption.patch
1616+ ./dvdrom.patch
1717+ ];
1818+1319 postPatch = ''
1420 patchShebangs ./
2121+ sed -i 's/dvdisaster48.png/dvdisaster/' contrib/dvdisaster.desktop
1522 '';
16231724 # Explicit --docdir= is required for on-line help to work:
···2229 glib gtk2
2330 ];
24312525- meta = {
3232+ postInstall = ''
3333+ mkdir -pv $out/share/applications
3434+ cp contrib/dvdisaster.desktop $out/share/applications/
3535+3636+ for size in 16 24 32 48 64; do
3737+ mkdir -pv $out/share/icons/hicolor/"$size"x"$size"/apps/
3838+ cp contrib/dvdisaster"$size".png $out/share/icons/hicolor/"$size"x"$size"/apps/dvdisaster.png
3939+ done
4040+ '';
4141+4242+ meta = with stdenv.lib; {
2643 homepage = http://dvdisaster.net/;
2727- description =
2828- "Stores data on CD/DVD/BD in a way that it is fully recoverable even " +
2929- "after some read errors have developed";
3030- license = stdenv.lib.licenses.gpl2;
4444+ description = "data loss/scratch/aging protection for CD/DVD media";
4545+ longDescription = ''
4646+ dvdisaster provides a margin of safety against data loss on CD and
4747+ DVD media caused by scratches or aging media. It creates error correction
4848+ data which is used to recover unreadable sectors if the disc becomes
4949+ damaged at a later time.
5050+ '';
5151+ license = licenses.gpl2;
5252+ platforms = platforms.linux;
5353+ maintainers = with maintainers; [ jgeerds ];
3154 };
3255}