devenv
This commit is contained in:
24
Deep-SAD-PyTorch/devenv.nix
Normal file
24
Deep-SAD-PyTorch/devenv.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
native_dependencies = with pkgs.python312Packages; [
|
||||||
|
torch-bin
|
||||||
|
torchvision-bin
|
||||||
|
aggdraw # for visualtorch
|
||||||
|
];
|
||||||
|
tools = with pkgs; [
|
||||||
|
ruff
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
packages = native_dependencies ++ tools;
|
||||||
|
languages.python = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.python312;
|
||||||
|
uv = {
|
||||||
|
enable = true;
|
||||||
|
sync.enable = true;
|
||||||
|
};
|
||||||
|
venv.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
17
Deep-SAD-PyTorch/devenv.yaml
Normal file
17
Deep-SAD-PyTorch/devenv.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json
|
||||||
|
inputs:
|
||||||
|
nixpkgs:
|
||||||
|
url: github:cachix/devenv-nixpkgs/rolling
|
||||||
|
|
||||||
|
allowUnfree: true
|
||||||
|
cudaSupport: true
|
||||||
|
# If you're using non-OSS software, you can set allowUnfree to true.
|
||||||
|
# allowUnfree: true
|
||||||
|
|
||||||
|
# If you're willing to use a package that's vulnerable
|
||||||
|
# permittedInsecurePackages:
|
||||||
|
# - "openssl-1.1.1w"
|
||||||
|
|
||||||
|
# If you have more than one devenv you can merge them
|
||||||
|
#imports:
|
||||||
|
# - ./backend
|
||||||
Reference in New Issue
Block a user