Skip to content

Commit

Permalink
update flake
Browse files Browse the repository at this point in the history
  • Loading branch information
foolnotion committed Nov 10, 2023
1 parent e10ba8c commit 4b89b44
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
1 change: 0 additions & 1 deletion .envrc

This file was deleted.

17 changes: 12 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
overlays = [ foolnotion.overlay ];
};
enableShared = false;
stdenv_ = pkgs.overrideCC pkgs.llvmPackages_16.stdenv (
pkgs.clang_16.override { gccForLibs = pkgs.gcc13.cc; }
);
python_ = pkgs.python310;
# stdenv_ = pkgs.overrideCC pkgs.llvmPackages_16.stdenv (
# pkgs.clang_16.override { gccForLibs = pkgs.gcc13.cc; }
# );
stdenv_ = pkgs.llvmPackages_16.stdenv;
python_ = pkgs.python311;

operon = pkgs.callPackage ./nix/operon {
enableShared = enableShared;
Expand Down Expand Up @@ -80,8 +81,14 @@
nativeBuildInputs = pyoperon.nativeBuildInputs;
buildInputs = pyoperon.buildInputs ++ (with pkgs; [ gdb valgrind gcc13 ])
++ (with python_.pkgs; [ scikit-build ] ) # cmake integration and release preparation
++ (with python_.pkgs; [ numpy scikit-learn pandas ipdb sympy requests matplotlib ])
++ (with python_.pkgs; [ numpy scikit-learn pandas ipdb sympy requests matplotlib optuna ])
++ (with pkgs; [ (pmlb.override { pythonPackages = python_.pkgs; }) ]);

shellHook = ''
LD_LIBRARY_PATH=${
pkgs.lib.makeLibraryPath [ pkgs.gcc13Stdenv.cc.cc.lib ]
};
'';
};

# backwards compatibility
Expand Down

0 comments on commit 4b89b44

Please sign in to comment.