mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
dvdisaster: Add icons and desktop file
This commit is contained in:
parent
00ab10de74
commit
1b3fb2709e
@ -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 New Issue
Block a user