diff --git a/nix/pkgs/plex-pass.nix b/nix/pkgs/plex-pass.nix index 361a964ba8..c0ea9496da 100644 --- a/nix/pkgs/plex-pass.nix +++ b/nix/pkgs/plex-pass.nix @@ -3,12 +3,18 @@ # SPDX-License-Identifier: Apache-2.0 { pkgs, ... }: +let + version = "1.21.4.4054-bab510e86"; + src = pkgs.fetchurl { + url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_amd64.deb"; + sha1 = "307c1af0c1db7b873163a7a5a4b729c57497971f"; + }; +in (pkgs.plex.override { plexRaw = (pkgs.plexRaw.overrideAttrs (oldAttrs: rec { - version = "1.21.4.4054-bab510e86"; - src = pkgs.fetchurl { - url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_amd64.deb"; - sha1 = "307c1af0c1db7b873163a7a5a4b729c57497971f"; - }; + inherit version src; })); +}).overrideAttrs (oldAttrs: { + name = "plexmediaserver-${version}"; + inherit version src; })