-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathflake.nix
More file actions
33 lines (26 loc) · 780 Bytes
/
flake.nix
File metadata and controls
33 lines (26 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
description = "Linux based GDDR6/GDDR6X VRAM temperature reader for NVIDIA RTX 3000/4000 series GPUs.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem(system:
let
pkgs = import nixpkgs { inherit system; };
in {
packages.gddr6 = with pkgs; stdenv.mkDerivation {
pname = "gddr6";
version = "unstable";
src = ./.;
buildInputs = [ cmake ];
nativeBuildInputs = [ pciutils ];
};
packages.default = self.packages.${system}.gddr6;
devShell = with pkgs; mkShell {
name = "gddr6";
nativeBuildInputs = [ cmake pciutils ];
};
}
);
}