2nd subter network arch
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
inputs = {
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
||||
# Added newest nixpkgs for an updated poetry package.
|
||||
nixpkgs-newest.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
poetry2nix = {
|
||||
url = "github:nix-community/poetry2nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
@@ -14,6 +16,7 @@
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
nixpkgs-newest,
|
||||
flake-utils,
|
||||
poetry2nix,
|
||||
}:
|
||||
@@ -26,6 +29,7 @@
|
||||
config.allowUnfree = true;
|
||||
config.cudaSupport = true;
|
||||
};
|
||||
pkgsNew = nixpkgs-newest.legacyPackages.${system};
|
||||
thundersvm = import ./nix/thundersvm.nix {
|
||||
inherit pkgs;
|
||||
inherit (pkgs) fetchFromGitHub cmake gcc12Stdenv;
|
||||
@@ -35,9 +39,9 @@
|
||||
thundersvm-python = import ./nix/thundersvm-python.nix {
|
||||
inherit pkgs;
|
||||
pythonPackages = pkgs.python311Packages;
|
||||
thundersvm = thundersvm;
|
||||
thundersvm = thundersvm;
|
||||
};
|
||||
inherit (poetry2nix.lib.mkPoetry2Nix { inherit pkgs; }) mkPoetryApplication;
|
||||
inherit (poetry2nix.lib.mkPoetry2Nix { inherit pkgs; }) mkPoetryApplication defaultPoetryOverrides;
|
||||
in
|
||||
{
|
||||
packages = {
|
||||
@@ -45,6 +49,13 @@
|
||||
projectDir = self;
|
||||
preferWheels = true;
|
||||
python = pkgs.python311;
|
||||
overrides = defaultPoetryOverrides.extend (
|
||||
final: prev: {
|
||||
torch-receptive-field = prev.torch-receptive-field.overridePythonAttrs (old: {
|
||||
buildInputs = (old.buildInputs or [ ]) ++ [ prev.setuptools ];
|
||||
});
|
||||
}
|
||||
);
|
||||
};
|
||||
default = self.packages.${system}.deepsad;
|
||||
};
|
||||
@@ -56,14 +67,14 @@
|
||||
torchvision-bin
|
||||
thundersvm-python
|
||||
];
|
||||
#LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath [
|
||||
#LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath [
|
||||
#pkgs.stdenv.cc.cc
|
||||
#];
|
||||
};
|
||||
|
||||
devShells.poetry = pkgs.mkShell {
|
||||
packages = [
|
||||
pkgs.poetry
|
||||
pkgsNew.poetry
|
||||
pkgs.python311
|
||||
];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user