add plexpass package
This commit is contained in:
parent
fc0f5c6cfa
commit
3eb4fa4fb3
7 changed files with 69 additions and 2 deletions
13
nixos/pkgs/plex-pass/raw.nix
Normal file
13
nixos/pkgs/plex-pass/raw.nix
Normal 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;
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue