first commit

This commit is contained in:
2024-07-31 17:12:24 +01:00
commit 5793e08674
10 changed files with 249 additions and 0 deletions

34
flake.nix Normal file
View File

@@ -0,0 +1,34 @@
{
inputs = {
utils.url = "github:numtide/flake-utils";
};
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
system = "x86_64-linux";
config = {
allowUnfree = true;
cudaSupport = true;
};
};
in
{
devShell = pkgs.mkShell
{
NIX_LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
pkgs.stdenv.cc.cc
];
NIX_LD = pkgs.lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
buildInputs = with pkgs; [
rye
uv
];
};
}
);
}