From db82683461c7b22bb7d52aa5b58f3b1e4750e555 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 11 Apr 2021 02:13:51 +0000 Subject: [PATCH] nix/pkgs/plex-pass: reorganise to make more nix-update friendly --- nix/pkgs/plex-pass.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/nix/pkgs/plex-pass.nix b/nix/pkgs/plex-pass.nix index 361a964ba8..c0ea9496da 100644 --- a/nix/pkgs/plex-pass.nix +++ b/nix/pkgs/plex-pass.nix @@ -3,12 +3,18 @@ # SPDX-License-Identifier: Apache-2.0 { pkgs, ... }: +let + version = "1.21.4.4054-bab510e86"; + src = pkgs.fetchurl { + url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_amd64.deb"; + sha1 = "307c1af0c1db7b873163a7a5a4b729c57497971f"; + }; +in (pkgs.plex.override { plexRaw = (pkgs.plexRaw.overrideAttrs (oldAttrs: rec { - version = "1.21.4.4054-bab510e86"; - src = pkgs.fetchurl { - url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_amd64.deb"; - sha1 = "307c1af0c1db7b873163a7a5a4b729c57497971f"; - }; + inherit version src; })); +}).overrideAttrs (oldAttrs: { + name = "plexmediaserver-${version}"; + inherit version src; })