nixgl: auto should be less impure now
parent
9abddeea3c
commit
aa96b9e6ab
|
@ -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:
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue