Skip to content

Commit

Permalink
Repro
Browse files Browse the repository at this point in the history
  • Loading branch information
Smaug123 committed Sep 7, 2022
0 parents commit 040003c
Show file tree
Hide file tree
Showing 4 changed files with 5,005 additions and 0 deletions.
155 changes: 155 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
poetry2nix.url = "github:nix-community/poetry2nix";
alejandra = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:kamadorueda/alejandra/3.0.0";
};
};

outputs = inputs @ {
self,
nixpkgs,
poetry2nix,
alejandra,
...
}: {
devShell.aarch64-darwin = let
system = "aarch64-darwin";
in
nixpkgs.legacyPackages.aarch64-darwin.mkShell {
buildInputs = let
pkgs = import nixpkgs {
inherit system;
overlays = [poetry2nix.overlay];
};
in let
env = pkgs.poetry2nix.mkPoetryEnv {
projectDir = ./.;
};
in [alejandra.defaultPackage.aarch64-darwin env];

shellHook = ''
export PYTORCH_ENABLE_MPS_FALLBACK=1;
'';
};
};
}
Loading

0 comments on commit 040003c

Please sign in to comment.