save extracted patch list in repo instead of requiring IFD

This commit is contained in:
Robin Appelman 2024-03-31 18:11:18 +02:00
commit a7d3995c69
9 changed files with 437 additions and 85 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/result /result
/.direnv /.direnv
nvidia-patch

View file

@ -1,39 +0,0 @@
{
stdenv,
lib,
jq,
fetchFromGitHub,
patch,
}: rev: sha256:
stdenv.mkDerivation rec {
pname = "nvidia-patch";
version = rev;
src = fetchFromGitHub {
inherit rev sha256;
owner = "keylase";
repo = pname;
};
nativeBuildInputs = [
jq
patch
];
dontConfigure = true;
buildPhase = ''
cp ${src}/patch.sh patch.sh
patch -p1 < ${./extract-patch-list.diff}
bash patch.sh > patch-list.json
cp ${src}/patch-fbc.sh patch.sh
patch -p1 < ${./extract-patch-list.diff}
bash patch.sh > fbc-patch-list.json
'';
installPhase = ''
mkdir -p $out
cp *.json $out
'';
}

18
extractor.nix Normal file
View file

@ -0,0 +1,18 @@
{
lib,
writeShellApplication,
patch,
jq,
}:
writeShellApplication {
name = "nvidia-patch-extrator";
runtimeInputs = [patch jq];
text = ''
mkdir -p /tmp/nvidia-patch
cp "$1" /tmp/nvidia-patch/patch.sh
cd /tmp/nvidia-patch
patch -p1 < ${./extract-patch-list.diff} 1>&2
bash patch.sh
'';
}

50
flake.lock generated
View file

@ -1,6 +1,21 @@
{ {
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": {
"lastModified": 1711898512,
"narHash": "sha256-l3D67S2ipurSfGZR6/h6c7gqFCIS+dn/YMI9Qswzbt8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ec835aa3dc8667e0c633d380d4b0ae609ffdb935",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "release-23.11",
"type": "indirect"
}
},
"nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1705957679, "lastModified": 1705957679,
"narHash": "sha256-Q8LJaVZGJ9wo33wBafvZSzapYsjOaNjP/pOnSiKVGHY=", "narHash": "sha256-Q8LJaVZGJ9wo33wBafvZSzapYsjOaNjP/pOnSiKVGHY=",
@ -15,10 +30,28 @@
"type": "indirect" "type": "indirect"
} }
}, },
"nvidia-patch": {
"inputs": {
"nixpkgs": "nixpkgs_2",
"utils": "utils"
},
"locked": {
"lastModified": 1710367162,
"narHash": "sha256-f4hsLsOqPUlh3iqg6gARj+c4pZzJhaPhoeoH36u0yQM=",
"path": "/nix/store/rbwjwinvjyzd56zddf4jyix5b45czn8p-source",
"rev": "17dd5c8e24ed20f46873effeaefabdda4ef5fecc",
"type": "path"
},
"original": {
"id": "nvidia-patch",
"type": "indirect"
}
},
"root": { "root": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"utils": "utils" "nvidia-patch": "nvidia-patch",
"utils": "utils_2"
} }
}, },
"systems": { "systems": {
@ -37,6 +70,21 @@
} }
}, },
"utils": { "utils": {
"locked": {
"lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"utils_2": {
"inputs": { "inputs": {
"systems": "systems" "systems": "systems"
}, },

View file

@ -1,53 +1,31 @@
{ {
inputs = { inputs = {
utils.url = "github:numtide/flake-utils"; utils.url = "github:numtide/flake-utils";
nixpkgs.url = "nixpkgs/release-23.05"; nixpkgs.url = "nixpkgs/release-23.11";
}; };
outputs = { self, nixpkgs, utils, }: outputs = {
utils.lib.eachDefaultSystem self,
(system: nixpkgs,
let utils,
nvidia-patch,
}:
utils.lib.eachDefaultSystem (system: let
overlays = [
(import ./overlay.nix)
];
pkgs = (import nixpkgs) { pkgs = (import nixpkgs) {
inherit system; inherit system overlays;
};
in rec {
packages = rec {
inherit (pkgs) nvidia-patch-extractor nvidia-patch;
}; };
rev = "af2616a252c990a8435bf86cf4788ce435474e24";
hash = "sha256-yocxfo7YvBCpHVV/ZhNQssyd3L9jvMFP7tz0cQucLr4=";
in
rec {
# `nix develop`
devShell = pkgs.mkShell { devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs; [jq patch]; nativeBuildInputs = with pkgs; [jq patch];
}; };
}) })
// { // {
overlay = final: prev: { overlays.default = import ./overlay.nix;
nvidia-patch = rev: hash:
let
inherit (nixpkgs.lib) importJSON;
extract = final.callPackage ./extract.nix { };
jsons = extract rev hash;
createPatch = prefix: object: rev: hash: driverPackage:
driverPackage.overrideAttrs ({ version
, preFixup ? ""
, ...
}:
let
patchList = importJSON "${jsons}/${prefix}patch-list.json";
patch = patchList.${version};
in
{
preFixup =
preFixup
+ ''
sed -i '${patch}' $out/lib/${object}.${version}
'';
});
in
{
patch-nvenc = createPatch "" "libnvidia-encode.so" rev hash;
patch-fbc = createPatch "fbc-" "libnvidia-fbc.so" rev hash;
};
};
}; };
} }

4
overlay.nix Normal file
View file

@ -0,0 +1,4 @@
final: prev: {
nvidia-patch-extractor = final.callPackage ./extractor.nix {};
nvidia-patch = final.callPackage ./patch.nix {};
}

142
patch-fbc.json Normal file
View file

@ -0,0 +1,142 @@
{
"525.89.02": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"440.64.00": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"470.182.03": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"515.105.01": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"460.91.03": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"470.223.02": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"510.73.05": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"465.31": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"510.73.08": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"470.57.02": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"470.239.06": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"525.78.01": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"450.51": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"450.57": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"450.56.11": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"470.94": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"510.54": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"525.85.05": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"440.66.04": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"440.66.03": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"440.66.02": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"470.42.01": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"440.66.09": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"440.66.08": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"510.47.03": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"460.80": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"460.84": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"545.23.06": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"545.23.08": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"450.51.06": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"495.44": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"495.46": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"450.51.05": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"440.59": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"460.27.04": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"525.116.03": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"470.129.06": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"525.116.04": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"525.60.11": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"525.60.13": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"510.39.01": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"460.56": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"535.129.03": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"455.50.04": "s/\\x83\\xf8\\x01\\x0f\\x84\\x85/\\x83\\xf8\\x69\\x0f\\x84\\x85/",
"515.43.04": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"455.50.05": "s/\\x83\\xf8\\x01\\x0f\\x84\\x85/\\x83\\xf8\\x69\\x0f\\x84\\x85/",
"455.50.07": "s/\\x83\\xf8\\x01\\x0f\\x84\\x85/\\x83\\xf8\\x69\\x0f\\x84\\x85/",
"455.50.02": "s/\\x83\\xf8\\x01\\x0f\\x84\\x85/\\x83\\xf8\\x69\\x0f\\x84\\x85/",
"455.50.03": "s/\\x83\\xf8\\x01\\x0f\\x84\\x85/\\x83\\xf8\\x69\\x0f\\x84\\x85/",
"470.82.00": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"470.82.01": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"440.48.02": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"510.108.03": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"535.43.25": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"515.48.07": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"520.56.06": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"510.85.02": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"550.40.07": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"510.68.02": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"525.105.17": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"535.113.01": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"535.161.07": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"440.36": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"440.31": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"535.86.05": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"470.141.03": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"470.103.01": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"440.64": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"455.23.04": "s/\\x83\\xf8\\x01\\x0f\\x84\\x85/\\x83\\xf8\\x69\\x0f\\x84\\x85/",
"455.23.05": "s/\\x83\\xf8\\x01\\x0f\\x84\\x85/\\x83\\xf8\\x69\\x0f\\x84\\x85/",
"535.43.02": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"440.95.01": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"440.58.02": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"440.58.01": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"455.32.00": "s/\\x83\\xf8\\x01\\x0f\\x84\\x85/\\x83\\xf8\\x69\\x0f\\x84\\x85/",
"535.104.12": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"455.38": "s/\\x83\\xf8\\x01\\x0f\\x84\\x85/\\x83\\xf8\\x69\\x0f\\x84\\x85/",
"455.46.02": "s/\\x83\\xf8\\x01\\x0f\\x84\\x83/\\x83\\xf8\\x69\\x0f\\x84\\x83/",
"455.46.01": "s/\\x83\\xf8\\x01\\x0f\\x84\\x85/\\x83\\xf8\\x69\\x0f\\x84\\x85/",
"450.36.06": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"550.67": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"455.46.04": "s/\\x83\\xf8\\x01\\x0f\\x84\\x85/\\x83\\xf8\\x69\\x0f\\x84\\x85/",
"525.85.12": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"525.147.05": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"535.54.03": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"455.26.01": "s/\\x83\\xf8\\x01\\x0f\\x84\\x85/\\x83\\xf8\\x69\\x0f\\x84\\x85/",
"455.26.02": "s/\\x83\\xf8\\x01\\x0f\\x84\\x85/\\x83\\xf8\\x69\\x0f\\x84\\x85/",
"465.24.02": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"465.27": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"440.44": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"515.57": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"530.41.03": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"450.56.02": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"450.56.01": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"450.56.06": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"470.199.02": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"470.74": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"440.43.01": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"455.50.10": "s/\\x83\\xf8\\x01\\x0f\\x84\\x85/\\x83\\xf8\\x69\\x0f\\x84\\x85/",
"535.98": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"515.65.01": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"525.125.06": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"440.33.01": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"460.32.03": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"520.61.05": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"450.80.02": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"470.63.01": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"465.19.01": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"470.86": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"515.76": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"535.86.10": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"545.29.02": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"545.29.06": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"440.66.14": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"440.66.15": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"440.66.17": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"440.66.11": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"440.66.12": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"460.67": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"455.45.01": "s/\\x83\\xf8\\x01\\x0f\\x84\\x85/\\x83\\xf8\\x69\\x0f\\x84\\x85/",
"535.146.02": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"535.104.05": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"440.118.02": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"440.26": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"440.100": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"460.39": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"535.154.05": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"440.82": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"470.62.05": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"470.62.02": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"460.73.01": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"550.54.15": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"450.66": "s/\\x85\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/\\x31\\xc0\\x89\\xc3\\x0f\\x85\\xa9\\xfa\\xff\\xff/",
"550.54.14": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x01\\x90\\x90\\x48/",
"510.60.02": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"515.86.01": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"530.30.02": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"470.161.03": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"495.29.05": "s/\\x83\\xfe\\x01\\x73\\x08\\x48/\\x83\\xfe\\x00\\x72\\x08\\x48/",
"455.28": "s/\\x83\\xf8\\x01\\x0f\\x84\\x85/\\x83\\xf8\\x69\\x0f\\x84\\x85/"
}

179
patch.json Normal file
View file

@ -0,0 +1,179 @@
{
"415.27": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x40\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"415.25": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x40\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"525.89.02": "s/\\xe8\\x65\\xc7\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x65\\xc7\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"440.64.00": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"470.182.03": "s/\\xe8\\x55\\x1a\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x55\\x1a\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"515.105.01": "s/\\xe8\\x95\\x1c\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x95\\x1c\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"460.91.03": "s/\\x22\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4\\x0f\\x85/\\x22\\xff\\xff\\x31\\xc0\\x41\\x89\\xc4\\x0f\\x85/g",
"470.223.02": "s/\\xe8\\x55\\x1a\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x55\\x1a\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"510.73.05": "s/\\xe8\\x15\\x1f\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x15\\x1f\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"465.31": "s/\\xe8\\xc5\\x20\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xc5\\x20\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"510.73.08": "s/\\xe8\\x15\\x1f\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x15\\x1f\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"470.57.02": "s/\\xe8\\x25\\x1C\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x25\\x1C\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"470.239.06": "s/\\xe8\\x55\\x1a\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x55\\x1a\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"410.57": "s/\\x85\\xC0\\x89\\xC5\\x0F\\x85\\x96\\x00\\x00\\x00/\\x29\\xC0\\x89\\xC5\\x90\\x90\\x90\\x90\\x90\\x90/g",
"525.78.01": "s/\\xe8\\xf5\\xc6\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xf5\\xc6\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"390.87": "s/\\x85\\xC0\\x89\\xC5\\x75\\x18/\\x29\\xC0\\x89\\xC5\\x90\\x90/g",
"450.51": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"450.57": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"396.37": "s/\\x85\\xC0\\x89\\xC5\\x0F\\x85\\x96\\x00\\x00\\x00/\\x29\\xC0\\x89\\xC5\\x90\\x90\\x90\\x90\\x90\\x90/g",
"390.147": "s/\\x85\\xC0\\x89\\xC5\\x75\\x18/\\x29\\xC0\\x89\\xC5\\x90\\x90/g",
"450.56.11": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"470.94": "s/\\xe8\\x25\\x1C\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x25\\x1C\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"510.54": "s/\\xe8\\x15\\x1f\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x15\\x1f\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"525.85.05": "s/\\xe8\\xf5\\xc6\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xf5\\xc6\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"440.66.04": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"440.66.03": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"440.66.02": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"470.42.01": "s/\\xe8\\x25\\x1C\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x25\\x1C\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"440.66.09": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"440.66.08": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"510.47.03": "s/\\xe8\\x15\\x1f\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x15\\x1f\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"418.67": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x40\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"460.80": "s/\\x22\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4\\x0f\\x85/\\x22\\xff\\xff\\x31\\xc0\\x41\\x89\\xc4\\x0f\\x85/g",
"460.84": "s/\\x22\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4\\x0f\\x85/\\x22\\xff\\xff\\x31\\xc0\\x41\\x89\\xc4\\x0f\\x85/g",
"545.23.06": "s/\\xe8\\xc5\\x8f\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xc5\\x8f\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"430.26": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x0f\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"545.23.08": "s/\\xe8\\xc5\\x8f\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xc5\\x8f\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"450.51.06": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"495.44": "s/\\xe8\\x35\\x1f\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x35\\x1f\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"495.46": "s/\\xe8\\x35\\x1f\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x35\\x1f\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"450.51.05": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"418.113": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x0f\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"440.59": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"460.27.04": "s/\\x22\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4\\x0f\\x85/\\x22\\xff\\xff\\x31\\xc0\\x41\\x89\\xc4\\x0f\\x85/g",
"525.116.03": "s/\\xe8\\x55\\xc4\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x55\\xc4\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"470.129.06": "s/\\xe8\\x25\\x1C\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x25\\x1C\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"525.116.04": "s/\\xe8\\x55\\xc4\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x55\\xc4\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"396.54": "s/\\x85\\xC0\\x89\\xC5\\x0F\\x85\\x96\\x00\\x00\\x00/\\x29\\xC0\\x89\\xC5\\x90\\x90\\x90\\x90\\x90\\x90/g",
"525.60.11": "s/\\xe8\\xf5\\xc6\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xf5\\xc6\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"525.60.13": "s/\\xe8\\xf5\\xc6\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xf5\\xc6\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"510.39.01": "s/\\xe8\\x15\\x1f\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x15\\x1f\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"460.56": "s/\\x22\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4\\x0f\\x85/\\x22\\xff\\xff\\x31\\xc0\\x41\\x89\\xc4\\x0f\\x85/g",
"535.129.03": "s/\\xe8\\xa5\\x9f\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xa5\\x9f\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"455.50.04": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"515.43.04": "s/\\xe8\\xd5\\x1e\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xd5\\x1e\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"455.50.05": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"455.50.07": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"430.50": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x0f\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"455.50.02": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"470.82.00": "s/\\xe8\\x25\\x1C\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x25\\x1C\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"470.82.01": "s/\\xe8\\x25\\x1C\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x25\\x1C\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"440.48.02": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"510.108.03": "s/\\xe8\\x15\\x1f\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x15\\x1f\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"535.43.25": "s/\\xe8\\xa5\\x9f\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xa5\\x9f\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"515.48.07": "s/\\xe8\\xd5\\x1e\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xd5\\x1e\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"520.56.06": "s/\\xe8\\xa5\\xc8\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xa5\\xc8\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"510.85.02": "s/\\xe8\\x15\\x1f\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x15\\x1f\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"550.40.07": "s/\\xe8\\x35\\x54\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x35\\x54\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"410.73": "s/\\x85\\xC0\\x89\\xC5\\x0F\\x85\\x96\\x00\\x00\\x00/\\x29\\xC0\\x89\\xC5\\x90\\x90\\x90\\x90\\x90\\x90/g",
"510.68.02": "s/\\xe8\\x15\\x1f\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x15\\x1f\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"525.105.17": "s/\\xe8\\x55\\xc4\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x55\\xc4\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"410.79": "s/\\x85\\xC0\\x89\\xC5\\x0F\\x85\\x96\\x00\\x00\\x00/\\x29\\xC0\\x89\\xC5\\x90\\x90\\x90\\x90\\x90\\x90/g",
"410.78": "s/\\x85\\xC0\\x89\\xC5\\x0F\\x85\\x96\\x00\\x00\\x00/\\x29\\xC0\\x89\\xC5\\x90\\x90\\x90\\x90\\x90\\x90/g",
"535.113.01": "s/\\xe8\\xa5\\x9f\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xa5\\x9f\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"418.56": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x40\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"430.09": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x0f\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"535.161.07": "s/\\xe8\\xa5\\x9f\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xa5\\x9f\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"440.36": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"440.31": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"535.86.05": "s/\\xe8\\x05\\xa0\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x05\\xa0\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"470.141.03": "s/\\xe8\\x25\\x1C\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x25\\x1C\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"410.93": "s/\\x85\\xC0\\x89\\xC5\\x0F\\x85\\x96\\x00\\x00\\x00/\\x29\\xC0\\x89\\xC5\\x90\\x90\\x90\\x90\\x90\\x90/g",
"470.103.01": "s/\\xe8\\x25\\x1C\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x25\\x1C\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"440.64": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"455.23.04": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"418.88": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x0f\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"455.23.05": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"535.43.02": "s/\\xe8\\xa5\\x9e\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xa5\\x9e\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"440.95.01": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"440.58.02": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"440.58.01": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"455.32.00": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"396.26": "s/\\x85\\xC0\\x89\\xC5\\x0F\\x85\\x96\\x00\\x00\\x00/\\x29\\xC0\\x89\\xC5\\x90\\x90\\x90\\x90\\x90\\x90/g",
"396.24": "s/\\x85\\xC0\\x89\\xC5\\x0F\\x85\\x96\\x00\\x00\\x00/\\x29\\xC0\\x89\\xC5\\x90\\x90\\x90\\x90\\x90\\x90/g",
"535.104.12": "s/\\xe8\\xa5\\x9f\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xa5\\x9f\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"415.18": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x40\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"455.38": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"455.46.02": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"455.46.01": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"450.36.06": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"550.67": "s/\\xe8\\x25\\x54\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x25\\x54\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"455.46.04": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"525.85.12": "s/\\xe8\\xf5\\xc6\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xf5\\xc6\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"525.147.05": "s/\\xe8\\x55\\xc4\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x55\\xc4\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"435.17": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x0f\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"418.74": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x0f\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"535.54.03": "s/\\xe8\\xa5\\x9e\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xa5\\x9e\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"455.22.04": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"455.26.01": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"455.26.02": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"465.24.02": "s/\\xe8\\xc5\\x20\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xc5\\x20\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"430.34": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x0f\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"418.87.01": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x0f\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"418.87.00": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x0f\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"465.27": "s/\\xe8\\xc5\\x20\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xc5\\x20\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"440.44": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"515.57": "s/\\xe8\\xd5\\x1e\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xd5\\x1e\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"530.41.03": "s/\\xe8\\xc5\\x6b\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xc5\\x6b\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"450.56.02": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"450.56.01": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"450.56.06": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"470.199.02": "s/\\xe8\\x55\\x1a\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x55\\x1a\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"470.74": "s/\\xe8\\x25\\x1C\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x25\\x1C\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"430.64": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x0f\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"440.43.01": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"455.50.10": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"535.98": "s/\\xe8\\xa5\\x9f\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xa5\\x9f\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"515.65.01": "s/\\xe8\\xd5\\x1e\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xd5\\x1e\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"525.125.06": "s/\\xe8\\x55\\xc4\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x55\\xc4\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"440.33.01": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"460.32.03": "s/\\x22\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4\\x0f\\x85/\\x22\\xff\\xff\\x31\\xc0\\x41\\x89\\xc4\\x0f\\x85/g",
"410.48": "s/\\x85\\xC0\\x89\\xC5\\x0F\\x85\\x96\\x00\\x00\\x00/\\x29\\xC0\\x89\\xC5\\x90\\x90\\x90\\x90\\x90\\x90/g",
"435.21": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x0f\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"520.61.05": "s/\\xe8\\xa5\\xc8\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xa5\\xc8\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"450.80.02": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"470.63.01": "s/\\xe8\\x25\\x1C\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x25\\x1C\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"465.19.01": "s/\\xe8\\xc5\\x20\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xc5\\x20\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"470.86": "s/\\xe8\\x25\\x1C\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x25\\x1C\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"515.76": "s/\\xe8\\xd5\\x1e\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xd5\\x1e\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"375.39": "s/\\x85\\xC0\\x89\\xC5\\x75\\x18/\\x29\\xC0\\x89\\xC5\\x90\\x90/g",
"535.86.10": "s/\\xe8\\x05\\xa0\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x05\\xa0\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"545.29.02": "s/\\xe8\\xc5\\x8f\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xc5\\x8f\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"545.29.06": "s/\\xe8\\xc5\\x8f\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xc5\\x8f\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"440.66.14": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"440.66.15": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"440.66.17": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"440.66.11": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"440.66.12": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"430.40": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x0f\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"460.67": "s/\\x22\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4\\x0f\\x85/\\x22\\xff\\xff\\x31\\xc0\\x41\\x89\\xc4\\x0f\\x85/g",
"455.45.01": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"535.146.02": "s/\\xe8\\xa5\\x9f\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xa5\\x9f\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"535.104.05": "s/\\xe8\\xa5\\x9f\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xa5\\x9f\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"450.102.04": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"440.118.02": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"440.26": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"430.14": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x0f\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"418.43": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x40\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"390.77": "s/\\x85\\xC0\\x89\\xC5\\x75\\x18/\\x29\\xC0\\x89\\xC5\\x90\\x90/g",
"440.100": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"460.39": "s/\\x22\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4\\x0f\\x85/\\x22\\xff\\xff\\x31\\xc0\\x41\\x89\\xc4\\x0f\\x85/g",
"535.154.05": "s/\\xe8\\xa5\\x9f\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xa5\\x9f\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"410.104": "s/\\x85\\xC0\\x89\\xC5\\x0F\\x85\\x96\\x00\\x00\\x00/\\x29\\xC0\\x89\\xC5\\x90\\x90\\x90\\x90\\x90\\x90/g",
"440.82": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"470.62.05": "s/\\xe8\\x25\\x1C\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x25\\x1C\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"470.62.02": "s/\\xe8\\x25\\x1C\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x25\\x1C\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"460.73.01": "s/\\x22\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4\\x0f\\x85/\\x22\\xff\\xff\\x31\\xc0\\x41\\x89\\xc4\\x0f\\x85/g",
"550.54.15": "s/\\xe8\\x25\\x54\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x25\\x54\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"450.66": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g",
"550.54.14": "s/\\xe8\\x25\\x54\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x25\\x54\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"510.60.02": "s/\\xe8\\x15\\x1f\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x15\\x1f\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"515.86.01": "s/\\xe8\\xd5\\x1e\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\xd5\\x1e\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"418.30": "s/\\x00\\x00\\x00\\x84\\xc0\\x0f\\x84\\x40\\xfd\\xff\\xff/\\x00\\x00\\x00\\x84\\xc0\\x90\\x90\\x90\\x90\\x90\\x90/g",
"530.30.02": "s/\\xe8\\x15\\x6f\\xfe\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x15\\x6f\\xfe\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"470.161.03": "s/\\xe8\\x25\\x1C\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x25\\x1C\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"495.29.05": "s/\\xe8\\x35\\x1f\\xff\\xff\\x85\\xc0\\x41\\x89\\xc4/\\xe8\\x35\\x1f\\xff\\xff\\x29\\xc0\\x41\\x89\\xc4/g",
"455.28": "s/\\x85\\xc0\\x41\\x89\\xc4\\x75\\x1f/\\x31\\xc0\\x41\\x89\\xc4\\x75\\x1f/g"
}

21
patch.nix Normal file
View file

@ -0,0 +1,21 @@
{lib}: let
inherit (lib) importJSON;
createPatch = json: object: driverPackage:
driverPackage.overrideAttrs ({
version,
preFixup ? "",
...
}: let
patchList = importJSON json;
patch = patchList.${version};
in {
preFixup =
preFixup
+ ''
sed -i '${patch}' $out/lib/${object}.${version}
'';
});
in {
patch-nvenc = createPatch ./patch.json "libnvidia-encode.so";
patch-fbc = createPatch ./patch-fbc.json "libnvidia-fbc.so";
}