nix/pkgs/plex-pass: reorganise to make more nix-update friendly

This commit is contained in:
Luke Granger-Brown 2021-04-11 02:13:51 +00:00
parent 849ee4d900
commit db82683461

View file

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