!eWOErHSaiddIbsUNsJ:nixos.org

NixOS CUDA

331 Members
CUDA packages maintenance and support in nixpkgs | https://github.com/orgs/NixOS/projects/27/ | https://nixos.org/manual/nixpkgs/unstable/#cuda63 Servers

Load older messages


SenderMessageTime
6 Jun 2026
@seudonym:matrix.orgWahid Khan* uhh why dont backticks work how do i send a code blcok13:25:31
@seudonym:matrix.orgWahid 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
@seudonym:matrix.orgWahid Khani actually have no idea why magma is being built13:34:13
@thefossguy:matrix.orgPratham Patel Use nom to figure that out quickly 13:34:58
@seudonym:matrix.orgWahid Khandamn okay let me look that up13:35:18
@thefossguy:matrix.orgPratham Patelnix run nixpkgs#nix-output-monitor -- build . #yourFlakeAttrGoesHere13:35:59
@seudonym:matrix.orgWahid Khanimage.png
Download image.png
13:38:10
@seudonym:matrix.orgWahid Khanlooks like its a torch dependency13:38:22
@seudonym:matrix.orgWahid Khantheres torch binaries on nixpkgs arent there13:38:47
@thefossguy:matrix.orgPratham Patel Let it build this once. If it isn't cached, it probably is because it doesn't build. 13:38:57
@seudonym:matrix.orgWahid Khanalright13:39:27
@seudonym:matrix.orgWahid Khan might take a while tho
magma> [1247/3492] Building CUDA object CMakeFiles/magma.dir/magmablas/ctransposeconjinplace.cu.o
13:39:33
@thefossguy:matrix.orgPratham Patel Try doing a nix build --dry-run .#yourFlakeAttr 13:39:36
@seudonym:matrix.orgWahid Khan might take a while tho
magma> [1247/3492] Building CUDA object CMakeFiles/magma.dir/magmablas/ctranspose_conj_inplace.cu.o
13:39:43
@thefossguy:matrix.orgPratham Patel Share its output please 13:39:47
@seudonym:matrix.orgWahid Khanthese 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.drv13:40:14
@thefossguy:matrix.orgPratham Patel What does PAGER= nix-store --query --outputs /nix/store/axpxjk65v92dg8fd89pbj60hkv4v1qzq-magma-2.9.0.drv show? 13:42:16
@seudonym:matrix.orgWahid Khan/nix/store/jsf4ks2kqw05n46zil6qgka27zbh1d6b-magma-2.9.0 /nix/store/ylzb5fvjs1sn7qr4rpjmjpw0ksvf8b0x-magma-2.9.0-test13:42:40
@thefossguy:matrix.orgPratham 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
@seudonym:matrix.orgWahid Khanis $FloxCache supposed to be in my env? bc it isnt13:44:58
@thefossguy:matrix.orgPratham Patelnix config show | grep substituter | grep flox13:45:20
@seudonym:matrix.orgWahid Khanyeah thats as expected it shows cache.flox.org13:45:40
@seudonym:matrix.orgWahid Khan.dev13:45:54
@seudonym:matrix.orgWahid Khan*13:45:55
@seudonym:matrix.orgWahid Khan substituters = https://cache.flox.dev https://cache.nixos.org/ 13:46:03
@thefossguy:matrix.orgPratham Patel cache.flox.dev is $FloxCache 13:46:06
@seudonym:matrix.orgWahid Khanalright so i'll do that in path-info args then13:46:23
@seudonym:matrix.orgWahid Khanimage.png
Download image.png
13:47:07
@thefossguy:matrix.orgPratham Patelyeah, not cached13:47:17
@seudonym:matrix.orgWahid Khanrip13:47:22

Show newer messages


Back to Room ListRoom Version: 9