Skip to content

Commit

Permalink
plex-desktop: inherit pname, meta, and enable update.sh
Browse files Browse the repository at this point in the history
Replaces #328708 and closes #345618
  • Loading branch information
detroyejr committed Oct 2, 2024
1 parent dab7fc9 commit 4e3b69e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/by-name/pl/plex-desktop/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ let
};
in
buildFHSEnv {
name = "${pname}-${version}";
inherit pname version meta;
targetPkgs = pkgs: [ xkeyboard_config ];

extraInstallCommands = ''
Expand Down Expand Up @@ -152,4 +152,5 @@ buildFHSEnv {
${lib.toShellVars extraEnv}
exec ${plex-desktop}/Plex.sh
'';
passthru.updateScript = ./update.sh;
}
1 change: 1 addition & 0 deletions pkgs/by-name/pl/plex-desktop/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e3b69e

Please sign in to comment.