14 lines
431 B
Nix
14 lines
431 B
Nix
|
{ 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;
|
||
|
};
|
||
|
})
|