depot/nix/pkgs/plex-pass.nix

21 lines
586 B
Nix
Raw Normal View History

# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
{ pkgs, ... }:
let
version = "1.27.0.5897-3940636f2";
src = pkgs.fetchurl {
url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_amd64.deb";
hash = "sha256-d4ppD2wAgavbY1sUgfQNZSbF3o19ePi3aQUodmWtNoU=";
};
in
(pkgs.plex.override {
plexRaw = (pkgs.plexRaw.overrideAttrs (oldAttrs: rec {
inherit version src;
}));
}).overrideAttrs (oldAttrs: {
name = "plexmediaserver-${version}";
inherit version src;
})