Open happysalada opened 2 years ago
dmlc-core is a simple package
{ config
, stdenv
, lib
, fetchFromGitHub
, cmake
, llvmPackages
}:
stdenv.mkDerivation rec {
pname = "dmlc-core";
version = "0.3";
src = fetchFromGitHub {
owner = "dmlc";
repo = pname;
rev = "v${version}";
fetchSubmodules = true;
sha256 = "sha256-JWrWFZ70Pq9YWkO40iGjbnhmjycgnI5KyB/4VAFefvk=";
};
nativeBuildInputs = [
cmake
] ++ lib.optionals stdenv.isDarwin [
llvmPackages.openmp
];
installPhase = ''
runHook preInstall
mkdir -p $out/lib
cp -r ../include $out
install -Dm755 libdmlc.a $out/lib/libdmlc.a
runHook postInstall
'';
meta = with lib; {
description = "A common bricks library for building scalable and portable distributed machine learning.";
homepage = "https://github.com/dmlc/dmlc-core";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ happysalada ];
};
}
Project description The project adds an extension to postgres and enables to do machine learning directly with postgres
Metadata
I'm leaving this to somebody better than me. This is a postgres extension built with rust. Here is how far I got
and here is the error I can't figure out
I've tried setting
LIBRARY_PATH
andLD_LIBRARY_PATH
, but to no avail, nothing works