67 lines
1.5 KiB
Nix
67 lines
1.5 KiB
Nix
{ stdenv, fetchgit, pkgs, lib }:
|
|
let
|
|
fs = lib.fileset;
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "yottadb";
|
|
version = "1.0.0";
|
|
/*src = fetchgit {
|
|
url = "https://gitlab.com/YottaDB/DB/YDB.git";
|
|
rev = "refs/tags/r2.00";
|
|
hash = "sha256-npdULo1GrawrmnlucTXKCs9LU0X/+WD5RICKXVDcX5E=";
|
|
deepClone = true;
|
|
leaveDotGit = true;
|
|
};*/
|
|
src = fs.toSource {
|
|
root = /home/charles/p3/YDB;
|
|
fileset = /home/charles/p3/YDB;
|
|
};
|
|
buildInputs = with pkgs; [
|
|
cmake
|
|
pkg-config
|
|
icu73
|
|
git
|
|
zlib
|
|
libelf
|
|
binutils
|
|
libxcrypt
|
|
readline
|
|
tcsh
|
|
curl
|
|
file
|
|
binutils
|
|
ncurses
|
|
glibc
|
|
libgcc
|
|
];
|
|
/*
|
|
buildPhase = ''
|
|
export HOME=$(pwd)
|
|
echo $(pwd)
|
|
pushd /build/YDB/
|
|
git config --global user.email "you@example.com"
|
|
git config --global user.name "Your Name"
|
|
git checkout -b tmp
|
|
touch a_file
|
|
git add a_file
|
|
git commit -am 'a_file makes index'
|
|
popd
|
|
make -j12
|
|
'';
|
|
*/
|
|
buildPhase = ''
|
|
export HOME=$(pwd)
|
|
echo $(pwd)
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/nix/store/wsyiyjdqqjsvrq42h13dl0cmqdbbb26i-icu4c-73.2/lib/
|
|
make -j12
|
|
'';
|
|
|
|
installPhase = ''
|
|
tmpdir=$(mktemp -d)
|
|
make install DESTDIR=$tmpdir
|
|
echo "installed to $tmpdir"
|
|
cd $tmpdir/nix/store/*/yottadb_r201/
|
|
./ydbinstall --utf8 --installdir=$out
|
|
'';
|
|
} |