nixgl: auto should be less impure now

pull/5/head
pegasust 2023-01-12 17:22:56 -07:00
parent 9abddeea3c
commit aa96b9e6ab
3 changed files with 2 additions and 5 deletions

View File

@ -41,10 +41,6 @@ def req_monad(url: str, err_fn, then_fn):
return then_fn(res.data)
identity = lambda e: e
def _fail(msg: str|None=None):
if msg:
assert False, msg
assert False
none_id = lambda _: None
def get_sha256(version: str) -> str | None:

View File

@ -56,12 +56,13 @@ let
done
'';
};
fetch_db = builtins.fromJSON (builtins.readFile ./nvidia_versions.json);
top = rec {
/*
It contains the builder for different nvidia configuration, parametrized by
the version of the driver and sha256 sum of the driver installer file.
*/
nvidiaPackages = { version }:
nvidiaPackages = { version, sha256? fetch_db."${version}".sha256 }:
let
nvidiaDrivers = (linuxPackages.nvidia_x11.override { }).overrideAttrs
(oldAttrs: {