9 , enableSoftening ? true
12 stdenv.mkDerivation rec {
17 url = "https://dvdisaster.jcea.es/downloads/${pname}-${version}.tar.bz2";
18 hash = "sha256-3Qqf9i8aSL9z2uJvm8P/QOPp83nODC3fyLL1iBIgf+g=";
21 nativeBuildInputs = [ gettext pkg-config which ];
22 buildInputs = [ glib gtk2 ];
24 patches = lib.optionals enableSoftening [
31 sed -i 's/dvdisaster48.png/dvdisaster/' contrib/dvdisaster.desktop
32 substituteInPlace scripts/bash-based-configure \
33 --replace 'if (make -v | grep "GNU Make") > /dev/null 2>&1 ;' \
34 'if make -v | grep "GNU Make" > /dev/null 2>&1 ;'
38 # Explicit --docdir= is required for on-line help to work:
41 "--with-embedded-src-path=no"
42 ] ++ lib.optional (stdenv.hostPlatform.isx86_64) "--with-sse2=yes";
44 # fatal error: inlined-icons.h: No such file or directory
45 enableParallelBuilding = false;
52 mkdir -p "$TMP"/{log,regtest}
53 substituteInPlace common.bash \
54 --replace /dev/shm "$TMP/log" \
55 --replace /var/tmp "$TMP"
57 for test in *.bash; do
73 rm -f $out/bin/dvdisaster-uninstall.sh
74 mkdir -pv $out/share/applications
75 cp contrib/dvdisaster.desktop $out/share/applications/
77 for size in 16 24 32 48 64; do
78 mkdir -pv $out/share/icons/hicolor/"$size"x"$size"/apps/
79 cp contrib/dvdisaster"$size".png \
80 $out/share/icons/hicolor/"$size"x"$size"/apps/dvdisaster.png
85 homepage = "https://dvdisaster.jcea.es/";
86 description = "Data loss/scratch/aging protection for CD/DVD media";
88 Dvdisaster provides a margin of safety against data loss on CD and
89 DVD media caused by scratches or aging media. It creates error correction
90 data which is used to recover unreadable sectors if the disc becomes
91 damaged at a later time.
93 license = licenses.gpl3Plus;
94 platforms = platforms.linux;
96 mainProgram = "dvdisaster";