add plexpass package

This commit is contained in:
Vivian 2023-05-24 16:58:51 +02:00
parent fc0f5c6cfa
commit 3eb4fa4fb3
7 changed files with 69 additions and 2 deletions

View file

@ -0,0 +1,13 @@
{ lib, stdenv, plexRaw, fetchurl }:
let
sources = builtins.fromJSON (builtins.readFile ./sources.json);
source = lib.findFirst (x: x.platform == stdenv.hostPlatform.system)
(throw "unsupported platform: ${stdenv.hostPlatform.system}") sources;
in plexRaw.overrideAttrs (attrs: {
pname = attrs.pname + "-plexpass";
version = source.version;
src = fetchurl {
inherit (source) url;
sha256 = source.hash;
};
})