plex-desktop: inherit pname, meta, and enable update.sh

Replaces #328708 and closes https://github.com/NixOS/nixpkgs/issues/345618
This commit is contained in:
detroyejr 2024-10-01 16:04:48 -04:00
parent dab7fc979d
commit 4e3b69e110
2 changed files with 3 additions and 1 deletions

View File

@ -121,7 +121,7 @@ let
};
in
buildFHSEnv {
name = "${pname}-${version}";
inherit pname version meta;
targetPkgs = pkgs: [ xkeyboard_config ];
extraInstallCommands = ''
@ -152,4 +152,5 @@ buildFHSEnv {
${lib.toShellVars extraEnv}
exec ${plex-desktop}/Plex.sh
'';
passthru.updateScript = ./update.sh;
}

View File

@ -73,6 +73,7 @@ sed --regexp-extended \
# try to build the updated version
#
export NIXPKGS_ALLOW_UNFREE=1
if ! nix-build -A plex-desktop "$nixpkgs"; then
echo "The updated plex-desktop failed to build."
exit 1