Skip to content

Commit

Permalink
Redo default.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmonson committed May 24, 2024
1 parent f679336 commit bc89430
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
26 changes: 21 additions & 5 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,37 @@
{
config,
stdenv,
lib,
cudaPackages ? { },
autoAddDriverRunpath,
cudaPackages,
...
}:

stdenv.mkDerivation {
let
inherit (cudaPackages)
backendStdenv
cuda_cudart
cuda_nvcc
cudaAtLeast
cudaOlder
cudatoolkit
setupCudaHook
;
inherit (lib) getDev getLib getOutput;
in
backendStdenv.mkDerivation {
pname = "tdr-inverse";
version = "0.0.1";

src = ./.;

strictDeps = true;

nativeBuildInputs = [
cudaPackages.cudatoolkit
autoAddDriverRunpath
cuda_nvcc
];

buildInputs = [ cuda_cudart ];

# buildPhase = ''
# make
# '';
Expand Down
1 change: 0 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
in
{
packages.default = pkgs.callPackage ./. {
stdenv = pkgs.gcc11Stdenv;
cudaPackages = pkgs.cudaPackages_12_3;
};

Expand Down

0 comments on commit bc89430

Please sign in to comment.