dvdisaster: Add icons and desktop file

This commit is contained in:
Jascha Geerds 2015-04-27 23:51:46 +02:00
parent 00ab10de74
commit 1b3fb2709e

View file

@ -18,6 +18,7 @@ stdenv.mkDerivation rec {
postPatch = ''
patchShebangs ./
sed -i 's/dvdisaster48.png/dvdisaster/' contrib/dvdisaster.desktop
'';
# Explicit --docdir= is required for on-line help to work:
@ -28,6 +29,16 @@ stdenv.mkDerivation rec {
glib gtk2
];
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
'';
meta = with stdenv.lib; {
homepage = http://dvdisaster.net/;
description = "data loss/scratch/aging protection for CD/DVD media";