plex-media-player: remove custom desktopItem
This commit is contained in:
parent
5f4a4e938f
commit
ee303d04de
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchFromGitHub, fetchurl, makeDesktopItem, pkgconfig, cmake, python3
|
{ stdenv, fetchFromGitHub, fetchurl, pkgconfig, cmake, python3
|
||||||
, libX11, libXrandr, qtbase, qtwebchannel, qtwebengine, qtx11extras
|
, libX11, libXrandr, qtbase, qtwebchannel, qtwebengine, qtx11extras
|
||||||
, libvdpau, SDL2, mpv, libGL }:
|
, libvdpau, SDL2, mpv, libGL }:
|
||||||
let
|
let
|
||||||
|
@ -50,16 +50,6 @@ in stdenv.mkDerivation rec {
|
||||||
buildInputs = [ libX11 libXrandr qtbase qtwebchannel qtwebengine qtx11extras
|
buildInputs = [ libX11 libXrandr qtbase qtwebchannel qtwebengine qtx11extras
|
||||||
libvdpau SDL2 mpv libGL ];
|
libvdpau SDL2 mpv libGL ];
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
|
||||||
name = "plex-media-player";
|
|
||||||
exec = "plexmediaplayer";
|
|
||||||
icon = "plex-media-player";
|
|
||||||
comment = "View your media";
|
|
||||||
desktopName = "Plex Media Player";
|
|
||||||
genericName = "Media Player";
|
|
||||||
categories = "AudioVideo;Video;Player;TV;";
|
|
||||||
};
|
|
||||||
|
|
||||||
preConfigure = with depSrcs; ''
|
preConfigure = with depSrcs; ''
|
||||||
mkdir -p build/dependencies
|
mkdir -p build/dependencies
|
||||||
ln -s ${webClient} build/dependencies/buildid-${webClientBuildId}.cmake
|
ln -s ${webClient} build/dependencies/buildid-${webClientBuildId}.cmake
|
||||||
|
@ -72,7 +62,6 @@ in stdenv.mkDerivation rec {
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/{applications,pixmaps}
|
mkdir -p $out/share/{applications,pixmaps}
|
||||||
cp ${src}/resources/images/icon.png $out/share/pixmaps/plex-media-player.png
|
cp ${src}/resources/images/icon.png $out/share/pixmaps/plex-media-player.png
|
||||||
cp ${desktopItem}/share/applications/* $out/share/applications
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=RelWithDebInfo" "-DQTROOT=${qtbase}" ];
|
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=RelWithDebInfo" "-DQTROOT=${qtbase}" ];
|
||||||
|
|
Loading…
Reference in New Issue