mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
dvdisaster: Add icons and desktop file
This commit is contained in:
parent
00ab10de74
commit
1b3fb2709e
1 changed files with 11 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue