mirror of
https://github.com/icewind1991/nvidia-patch-nixos.git
synced 2026-06-03 19:14:06 +02:00
fmt
This commit is contained in:
parent
e9af478fe3
commit
8488b1da4b
2 changed files with 21 additions and 19 deletions
|
|
@ -4,8 +4,8 @@
|
|||
jq,
|
||||
fetchFromGitHub,
|
||||
patch,
|
||||
}:
|
||||
rev: sha256: stdenv.mkDerivation rec {
|
||||
}: rev: sha256:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nvidia-patch";
|
||||
version = rev;
|
||||
|
||||
|
|
|
|||
|
|
@ -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 ? "",
|
||||
...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue