Skip to content

Commit 75805f1

Browse files
onnx testing
1 parent c21329f commit 75805f1

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

desktop/l/flake.nix

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,20 @@
3737
};
3838
overlays = [
3939
(final: prev: {
40-
onnxruntime = final.callPackage /home/das/Downloads/nixpkgs/pkgs/by-name/on/onnxruntime/package.nix { };
40+
onnxruntime = final.callPackage /home/das/Downloads/nixpkgs/pkgs/by-name/on/onnxruntime/package.nix {
41+
rocmSupport = true;
42+
rcclSupport = true;
43+
};
44+
python313Packages = prev.python313Packages.override (old: {
45+
overrides = prev.lib.composeManyExtensions [
46+
(final: prev: {
47+
onnxruntime = final.callPackage /home/das/Downloads/nixpkgs/pkgs/development/python-modules/onnxruntime/default.nix {
48+
onnxruntime = final.onnxruntime; # Use the overlay version
49+
};
50+
})
51+
old.overrides or (final: prev: { })
52+
];
53+
});
4154
})
4255
];
4356
};

desktop/l/home.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
#CHROME_EXECUTABLE = "/etc/profiles/per-user/das/bin/google-chrome-stable";
5959
CHROME_EXECUTABLE = "${pkgs.google-chrome}/bin/google-chrome-stable";
6060
GOOGLE_APPLICATION_CREDENTIALS="~/Downloads/dashboard-dev-3da32-83d127a0f9ba.json";
61+
62+
# Python path for onnxruntime
63+
PYTHONPATH = "${pkgs.python313Packages.onnxruntime}/lib/python3.13/site-packages";
6164
};
6265

6366
home.packages = with pkgs; [
@@ -130,7 +133,7 @@
130133

131134
# Scripting/Utils
132135
perl
133-
python314
136+
python313
134137
gawk
135138
jq
136139
git
@@ -451,6 +454,9 @@
451454

452455
# Custom onnxruntime package
453456
onnxruntime
457+
458+
# Custom Python onnxruntime module
459+
python313Packages.onnxruntime
454460
];
455461

456462
# vscode
@@ -506,6 +512,7 @@
506512
};
507513
};
508514

515+
509516
programs.vim = {
510517
enable = true;
511518
plugins = with pkgs.vimPlugins; [ vim-airline ];

0 commit comments

Comments
 (0)