full upload so not to lose anything important
This commit is contained in:
48
Deep-SAD-PyTorch/nix/thundersvm-python.nix
Normal file
48
Deep-SAD-PyTorch/nix/thundersvm-python.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{ pkgs
|
||||
, pythonPackages
|
||||
, thundersvm
|
||||
, ...
|
||||
}:
|
||||
|
||||
pythonPackages.buildPythonPackage rec {
|
||||
pname = "thundersvm-python";
|
||||
version = "0.3.4";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "Xtra-Computing";
|
||||
repo = "thundersvm";
|
||||
rev = "5c6a056ac7f474b085d5415c81c5d48a1419642a";
|
||||
sha256 = "sha256-58YtOC8FK1d3ATETmwrEBc+/SQx0Pzlx5L1MgxXPQDE=";
|
||||
};
|
||||
|
||||
#sourceRoot = "${src.name}/python";
|
||||
|
||||
buildInputs = [
|
||||
pkgs.cudaPackages.cudatoolkit
|
||||
thundersvm
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
pythonPackages.scikit-learn
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
ln -s ${thundersvm} build
|
||||
cd python
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgs.autoPatchelfHook
|
||||
];
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Python bindings for ThunderSVM, with CUDA support";
|
||||
homepage = "https://github.com/Xtra-Computing/thundersvm";
|
||||
license = licenses.asl20;
|
||||
maintainers = [];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
35
Deep-SAD-PyTorch/nix/thundersvm.nix
Normal file
35
Deep-SAD-PyTorch/nix/thundersvm.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ pkgs
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, gcc12Stdenv ? pkgs.gcc12Stdenv
|
||||
, cudaPackages ? pkgs.cudaPackages
|
||||
}:
|
||||
|
||||
gcc12Stdenv.mkDerivation rec {
|
||||
pname = "thundersvm";
|
||||
version = "git";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Xtra-Computing";
|
||||
repo = "thundersvm";
|
||||
rev = "5c6a056ac7f474b085d5415c81c5d48a1419642a";
|
||||
sha256 = "sha256-58YtOC8FK1d3ATETmwrEBc+/SQx0Pzlx5L1MgxXPQDE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
cudaPackages.cudatoolkit
|
||||
];
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "ThunderSVM CLI and library (compiled with CUDA)";
|
||||
homepage = "https://github.com/Xtra-Computing/thundersvm";
|
||||
license = licenses.asl20;
|
||||
maintainers = [];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user