2014-09-08 02:29:56 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, which, gettext, intltool
|
|
|
|
, glib, gtk2
|
2015-04-27 22:50:56 +01:00
|
|
|
, enableSoftening ? true
|
2014-09-08 02:29:56 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dvdisaster-0.72.6";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://dvdisaster.net/downloads/${name}.tar.bz2";
|
|
|
|
sha256 = "e9787dea39aeafa38b26604752561bc895083c17b588489d857ac05c58be196b";
|
|
|
|
};
|
|
|
|
|
2015-04-27 22:50:56 +01:00
|
|
|
patches = stdenv.lib.optional enableSoftening [
|
|
|
|
./encryption.patch
|
|
|
|
./dvdrom.patch
|
|
|
|
];
|
|
|
|
|
2015-01-08 09:26:49 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./
|
2015-04-27 22:51:46 +01:00
|
|
|
sed -i 's/dvdisaster48.png/dvdisaster/' contrib/dvdisaster.desktop
|
2015-01-08 09:26:49 +00:00
|
|
|
'';
|
|
|
|
|
2015-02-22 15:05:43 +00:00
|
|
|
# Explicit --docdir= is required for on-line help to work:
|
|
|
|
configureFlags = [ "--docdir=$out/share/doc" ];
|
|
|
|
|
2014-09-08 02:29:56 +01:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig which gettext intltool
|
|
|
|
glib gtk2
|
|
|
|
];
|
|
|
|
|
2015-04-27 22:51:46 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -pv $out/share/applications
|
|
|
|
cp contrib/dvdisaster.desktop $out/share/applications/
|
|
|
|
|
|
|
|
for size in 16 24 32 48 64; do
|
|
|
|
mkdir -pv $out/share/icons/hicolor/"$size"x"$size"/apps/
|
|
|
|
cp contrib/dvdisaster"$size".png $out/share/icons/hicolor/"$size"x"$size"/apps/dvdisaster.png
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2015-04-27 22:50:56 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-09-08 02:29:56 +01:00
|
|
|
homepage = http://dvdisaster.net/;
|
2015-04-30 11:08:54 +01:00
|
|
|
description = "Data loss/scratch/aging protection for CD/DVD media";
|
2015-04-27 22:50:56 +01:00
|
|
|
longDescription = ''
|
2015-04-30 11:08:54 +01:00
|
|
|
Dvdisaster provides a margin of safety against data loss on CD and
|
2015-04-27 22:50:56 +01:00
|
|
|
DVD media caused by scratches or aging media. It creates error correction
|
|
|
|
data which is used to recover unreadable sectors if the disc becomes
|
|
|
|
damaged at a later time.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ jgeerds ];
|
2014-09-08 02:29:56 +01:00
|
|
|
};
|
|
|
|
}
|