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)
|
return then_fn(res.data)
|
||||||
|
|
||||||
identity = lambda e: e
|
identity = lambda e: e
|
||||||
def _fail(msg: str|None=None):
|
|
||||||
if msg:
|
|
||||||
assert False, msg
|
|
||||||
assert False
|
|
||||||
none_id = lambda _: None
|
none_id = lambda _: None
|
||||||
|
|
||||||
def get_sha256(version: str) -> str | None:
|
def get_sha256(version: str) -> str | None:
|
||||||
|
|
|
@ -56,12 +56,13 @@ let
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
fetch_db = builtins.fromJSON (builtins.readFile ./nvidia_versions.json);
|
||||||
top = rec {
|
top = rec {
|
||||||
/*
|
/*
|
||||||
It contains the builder for different nvidia configuration, parametrized by
|
It contains the builder for different nvidia configuration, parametrized by
|
||||||
the version of the driver and sha256 sum of the driver installer file.
|
the version of the driver and sha256 sum of the driver installer file.
|
||||||
*/
|
*/
|
||||||
nvidiaPackages = { version }:
|
nvidiaPackages = { version, sha256? fetch_db."${version}".sha256 }:
|
||||||
let
|
let
|
||||||
nvidiaDrivers = (linuxPackages.nvidia_x11.override { }).overrideAttrs
|
nvidiaDrivers = (linuxPackages.nvidia_x11.override { }).overrideAttrs
|
||||||
(oldAttrs: {
|
(oldAttrs: {
|
||||||
|
|
Loading…
Reference in New Issue