From 1b3fb2709ea7fa5d1f5eb3c8346b946120815411 Mon Sep 17 00:00:00 2001 From: Jascha Geerds Date: Mon, 27 Apr 2015 23:51:46 +0200 Subject: [PATCH] dvdisaster: Add icons and desktop file --- pkgs/tools/cd-dvd/dvdisaster/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/tools/cd-dvd/dvdisaster/default.nix b/pkgs/tools/cd-dvd/dvdisaster/default.nix index 472ef056f1f1..704c3643f3c8 100644 --- a/pkgs/tools/cd-dvd/dvdisaster/default.nix +++ b/pkgs/tools/cd-dvd/dvdisaster/default.nix @@ -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";