I’m trying to override the package the Plex Media Server module is using, by way of the following:
unstable = import <nixos-unstable> {
...
overlays = [ (self: super: {
plexPass = super.plex.override {
plexRaw = super.plexRaw.overrideAttrs(old: rec {
version = "1.21.3.4021-5a0a3e4b2";
name = "${old.pname}-${version}";
src = super.fetchurl {
url =
"https://downloads.plex.tv/plex-media-server-new/${version}/redhat/plexmediaserver-${version}.x86_64.rpm";
sha256 = "116x1ka5yqk62s3hp06ab89cjx78galbv4f4x6hr1lq32r6lqq43";
};
});
};
];
...
};
...
services.plex = {
enable = true;
package = unstable.plexPass;
}
This has definitely worked for me in the past, but as of recent, when I try to nixos-rebuild
, I receive the following error:
dpkg-deb: error: ‘/nix/store/1kpmdvxjccwphv4760hs1vd5dhdrhyq4-plexmediaserver-1.21.3.4021-5a0a3e4b2.x86_64.rpm’ is not a Debian format archive
builder for ‘/nix/store/47f1pzdfackfyfyw0kcx68s115f8bvf8-plexmediaserver-1.21.3.4021-5a0a3e4b2.drv’ failed with exit code 2
I haven’t seen any other reports of this anywhere, so I’m curious if it could be something I’m doing wrong.