infrastructure/pkgs/plex-pass/raw.nix
Vivian 2bcb4c3fbb
Some checks failed
Lint / lint (push) Failing after 2m7s
move pkgs
2024-01-03 15:50:11 +01:00

15 lines
435 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";
inherit (source) version;
src = fetchurl {
inherit (source) url;
sha256 = source.hash;
};
})