depot/nix/pkgs/plex-pass.nix

20 lines
616 B
Nix

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