How do I change package download link? Or fix broken packagen via local file?

Ultimately I think the most helpful thing would be to try to review #277176 since you have the hardware to actually put it to use. To make the unified xp-pentablet available you can try an overlay like this:

_: pkgs:

let
  # https://github.com/NixOS/nixpkgs/pull/277176
  pr-277176 = import (builtins.fetchTarball { url = "https://github.com/NixOS/nixpkgs/archive/6ae74f5a167f7cf771d1ac87292fe479b0257782.tar.gz"; }) { inherit (pkgs) config; overlays = [ ]; };
in
rec {
  inherit (libsForQt5) xp-pentablet;

  libsForQt5 = pkgs.libsForQt5.overrideScope (_: _: {
    inherit (pr-277176.libsForQt5) xp-pentablet;
  });
}

In the interim if you’d like to just have #267753 early you can use an overlay like:

_: pkgs:

let
  # https://github.com/NixOS/nixpkgs/pull/267753
  pr-267753 = import (builtins.fetchTarball { url = "https://github.com/NixOS/nixpkgs/archive/12afc8f19ee09147e6592fa23c3bde7aecc90042.tar.gz"; }) { inherit (pkgs) config; overlays = [ ]; };
in
{
  libsForQt5 = pkgs.libsForQt5.overrideScope (_: _: {
    inherit (pr-267753.libsForQt5) xp-pen-deco-01-v2-driver;
  });
}
2 Likes