This commit is contained in:
Robin Appelman 2023-01-22 15:10:48 +01:00
commit 8488b1da4b
2 changed files with 21 additions and 19 deletions

View file

@ -4,8 +4,8 @@
jq,
fetchFromGitHub,
patch,
}:
rev: sha256: stdenv.mkDerivation rec {
}: rev: sha256:
stdenv.mkDerivation rec {
pname = "nvidia-patch";
version = rev;

View file

@ -20,13 +20,15 @@
devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs; [jq patch];
};
}) // {
})
// {
overlay = final: prev: {
nvidia-patch = rev: hash: let
inherit (nixpkgs.lib) importJSON;
extract = final.callPackage ./extract.nix {};
jsons = extract rev hash;
createPatch = prefix: rev: hash: driverPackage: driverPackage.overrideAttrs ({
createPatch = prefix: rev: hash: driverPackage:
driverPackage.overrideAttrs ({
version,
preFixup ? "",
...