2023-05-24 16:58:51 +02:00
|
|
|
{ lib, stdenv, plexRaw, fetchurl }:
|
|
|
|
let
|
|
|
|
sources = builtins.fromJSON (builtins.readFile ./sources.json);
|
|
|
|
source = lib.findFirst (x: x.platform == stdenv.hostPlatform.system)
|
2023-09-25 11:56:02 +02:00
|
|
|
(throw "unsupported platform: ${stdenv.hostPlatform.system}")
|
|
|
|
sources;
|
|
|
|
in
|
|
|
|
plexRaw.overrideAttrs (attrs: {
|
2023-05-24 16:58:51 +02:00
|
|
|
pname = attrs.pname + "-plexpass";
|
2023-05-24 18:39:28 +02:00
|
|
|
inherit (source) version;
|
2023-05-24 16:58:51 +02:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (source) url;
|
|
|
|
sha256 = source.hash;
|
|
|
|
};
|
|
|
|
})
|