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, ... }:
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 { (pkgs.plex.override {
plexRaw = (pkgs.plexRaw.overrideAttrs (oldAttrs: rec { plexRaw = (pkgs.plexRaw.overrideAttrs (oldAttrs: rec {
version = "1.21.4.4054-bab510e86"; inherit version src;
src = pkgs.fetchurl {
url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_amd64.deb";
sha1 = "307c1af0c1db7b873163a7a5a4b729c57497971f";
};
})); }));
}).overrideAttrs (oldAttrs: {
name = "plexmediaserver-${version}";
inherit version src;
}) })