clipgrab: use makeDesktopItem
This commit is contained in:
parent
bcc1d0339b
commit
672111dc35
|
@ -1,10 +0,0 @@
|
||||||
[Desktop Entry]
|
|
||||||
Encoding=UTF-8
|
|
||||||
Name=ClipGrab
|
|
||||||
GenericName=Web video downloader
|
|
||||||
Comment=A friendly downloader for YouTube and other sites
|
|
||||||
Type=Application
|
|
||||||
Categories=Qt;AudioVideo;Audio;Video;
|
|
||||||
Icon=clipgrab
|
|
||||||
Exec=clipgrab
|
|
||||||
Terminal=false
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl, qt4 }:
|
{ stdenv, fetchurl, makeDesktopItem, qt4 }:
|
||||||
|
|
||||||
let version = "3.4.9"; in
|
let version = "3.4.9"; in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -31,12 +31,19 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
installPhase = ''
|
desktopItem = makeDesktopItem rec {
|
||||||
mkdir -p $out/bin
|
name = "clipgrab";
|
||||||
install -Dm755 clipgrab $out/bin
|
exec = name;
|
||||||
|
icon = name;
|
||||||
|
desktopName = "ClipGrab";
|
||||||
|
comment = "A friendly downloader for YouTube and other sites";
|
||||||
|
genericName = "Web video downloader";
|
||||||
|
categories = "Qt;AudioVideo;Audio;Video";
|
||||||
|
};
|
||||||
|
|
||||||
mkdir -p $out/share
|
installPhase = ''
|
||||||
|
install -Dm755 clipgrab $out/bin/clipgrab
|
||||||
install -Dm644 icon.png $out/share/pixmaps/clipgrab.png
|
install -Dm644 icon.png $out/share/pixmaps/clipgrab.png
|
||||||
install -Dm644 ${./clipgrab.desktop} $out/share/applications/clipgrab.desktop
|
cp -r ${desktopItem}/share/applications $out/share
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue