Skip to content

Commit 101c9e2

Browse files
Add Nix devshell flake (#138)
1 parent 28acdb2 commit 101c9e2

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

flake.lock

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
3+
outputs = {nixpkgs, ...}: {
4+
devShell = nixpkgs.lib.genAttrs (nixpkgs.legacyPackages.x86_64-linux.onnxruntime.meta.platforms) (system: let
5+
pkgs = nixpkgs.legacyPackages.${system};
6+
in
7+
pkgs.mkShell {
8+
packages = with pkgs; [onnxruntime openssl pkg-config rustPlatform.bindgenHook];
9+
});
10+
};
11+
}

0 commit comments

Comments
 (0)