diff --git a/pkgs/applications/video/clipgrab/clipgrab.desktop b/pkgs/applications/video/clipgrab/clipgrab.desktop deleted file mode 100644 index 4e230d1c40c..00000000000 --- a/pkgs/applications/video/clipgrab/clipgrab.desktop +++ /dev/null @@ -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 diff --git a/pkgs/applications/video/clipgrab/default.nix b/pkgs/applications/video/clipgrab/default.nix index 23bf14bf857..675f0a3a2f6 100644 --- a/pkgs/applications/video/clipgrab/default.nix +++ b/pkgs/applications/video/clipgrab/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, qt4 }: +{ stdenv, fetchurl, makeDesktopItem, qt4 }: let version = "3.4.9"; in stdenv.mkDerivation rec { @@ -31,12 +31,19 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - installPhase = '' - mkdir -p $out/bin - install -Dm755 clipgrab $out/bin + desktopItem = makeDesktopItem rec { + name = "clipgrab"; + 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 ${./clipgrab.desktop} $out/share/applications/clipgrab.desktop + cp -r ${desktopItem}/share/applications $out/share ''; }