nix/pkgs/plex-pass: reorganise to make more nix-update friendly
This commit is contained in:
parent
849ee4d900
commit
db82683461
1 changed files with 11 additions and 5 deletions
|
@ -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;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue