| 6 Jun 2026 |
Wahid Khan | * uhh why dont backticks work how do i send a code blcok | 13:25:31 |
Wahid Khan | {
description = "DAWG Flake";
inputs = {
pyproject-nix.url = "github:pyproject-nix/pyproject.nix";
pyproject-nix.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {
nixpkgs,
pyproject-nix,
...
}: let
system = "x86_64-linux";
project = pyproject-nix.lib.project.loadPyproject {
projectRoot = ./.;
};
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
cudaSupport = true;
};
};
python = pkgs.python3;
cudaPackages = pkgs.cudaPackages;
in {
devShells.x86_64-linux.default = let
arg = project.renderers.withPackages {inherit python;};
pythonEnv = python.withPackages arg;
in
pkgs.mkShell {
packages =
[pythonEnv]
++ (with pkgs; [
basedpyright
black
ffmpeg
playerctl
portaudio
ripgrep
gcc
stdenv.cc.cc.lib
cudaPackages.cudatoolkit
]);
shellHook = ''
export CUDA_HOME=${cudaPackages.cudatoolkit}
export CUDA_PATH=${cudaPackages.cudatoolkit}
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/run/opengl-driver/lib:/run/opengl-driver-32/lib
'';
};
packages.x86_64-linux.default = let
attrs = project.renderers.buildPythonPackage {inherit python;};
in
python.pkgs.buildPythonPackage attrs;
};
}
| 13:25:53 |
Wahid Khan | i actually have no idea why magma is being built | 13:34:13 |
Pratham Patel | Use nom to figure that out quickly | 13:34:58 |
Wahid Khan | damn okay let me look that up | 13:35:18 |
Pratham Patel | nix run nixpkgs#nix-output-monitor -- build . #yourFlakeAttrGoesHere | 13:35:59 |
Wahid Khan |  Download image.png | 13:38:10 |
Wahid Khan | looks like its a torch dependency | 13:38:22 |
Wahid Khan | theres torch binaries on nixpkgs arent there | 13:38:47 |
Pratham Patel | Let it build this once. If it isn't cached, it probably is because it doesn't build. | 13:38:57 |
Wahid Khan | alright | 13:39:27 |
Wahid Khan | might take a while tho magma> [1247/3492] Building CUDA object CMakeFiles/magma.dir/magmablas/ctransposeconjinplace.cu.o | 13:39:33 |
Pratham Patel | Try doing a nix build --dry-run .#yourFlakeAttr | 13:39:36 |
Wahid Khan | might take a while tho
magma> [1247/3492] Building CUDA object CMakeFiles/magma.dir/magmablas/ctranspose_conj_inplace.cu.o | 13:39:43 |
Pratham Patel | Share its output please | 13:39:47 |
Wahid Khan | these 9 derivations will be built:
/nix/store/axpxjk65v92dg8fd89pbj60hkv4v1qzq-magma-2.9.0.drv
/nix/store/rs01a67h094936gqa161z7rb7zr974pg-python3.13-torch-2.11.0.drv
/nix/store/n4d06ya1jrg933wp4d6mq296h81iznca-python3.13-safetensors-0.7.0.drv
/nix/store/2c7qa2gi00gfwjj6b0j1x050rcjzm3a2-python3.13-transformers-5.5.4.drv
/nix/store/9idrq44qrs196pkqddazhns1z912q7k3-onnxruntime-1.26.0.drv
/nix/store/v64hr3myakdfmnifqwyb5r3fzv8dxxlj-python3.13-ctranslate2-4.7.2.drv
/nix/store/vvkw8ivyn6y5y7568lvi3pv6k298y340-python3.13-onnxruntime-1.26.0.drv
/nix/store/rqscgrfxklz0x28rk3vlwiy8bb7yckcf-python3.13-faster-whisper-1.2.1.drv
/nix/store/ylspyyqpw2005dpdh5nc247i6v8yk0d5-python3.13-dawg-0.1.0.drv | 13:40:14 |
Pratham Patel | What does PAGER= nix-store --query --outputs /nix/store/axpxjk65v92dg8fd89pbj60hkv4v1qzq-magma-2.9.0.drv show? | 13:42:16 |
Wahid Khan | /nix/store/jsf4ks2kqw05n46zil6qgka27zbh1d6b-magma-2.9.0
/nix/store/ylzb5fvjs1sn7qr4rpjmjpw0ksvf8b0x-magma-2.9.0-test | 13:42:40 |
Pratham Patel | now test if it is really cached or not nix path-info --refresh --store $FloxCache /nix/store/jsf4ks2kqw05n46zil6qgka27zbh1d6b-magma-2.9.0 | 13:44:25 |
Wahid Khan | is $FloxCache supposed to be in my env? bc it isnt | 13:44:58 |
Pratham Patel | nix config show | grep substituter | grep flox | 13:45:20 |
Wahid Khan | yeah thats as expected it shows cache.flox.org | 13:45:40 |
Wahid Khan | .dev | 13:45:54 |
Wahid Khan | * | 13:45:55 |
Wahid Khan | substituters = https://cache.flox.dev https://cache.nixos.org/ | 13:46:03 |
Pratham Patel | cache.flox.dev is $FloxCache | 13:46:06 |
Wahid Khan | alright so i'll do that in path-info args then | 13:46:23 |
Wahid Khan |  Download image.png | 13:47:07 |
Pratham Patel | yeah, not cached | 13:47:17 |
Wahid Khan | rip | 13:47:22 |