add: all files
This commit is contained in:
@@ -1,34 +1,67 @@
|
|||||||
{ stdenv, fetchgit, pkgs }:
|
{ stdenv, fetchgit, pkgs, lib }:
|
||||||
|
let
|
||||||
|
fs = lib.fileset;
|
||||||
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "yottadb";
|
pname = "yottadb";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
src = fetchgit {
|
/*src = fetchgit {
|
||||||
url = "https://gitlab.com/YottaDB/DB/YDB.git";
|
url = "https://gitlab.com/YottaDB/DB/YDB.git";
|
||||||
rev = "refs/tags/r2.00";
|
rev = "refs/tags/r2.00";
|
||||||
hash = "sha256-npdULo1GrawrmnlucTXKCs9LU0X/+WD5RICKXVDcX5E=";
|
hash = "sha256-npdULo1GrawrmnlucTXKCs9LU0X/+WD5RICKXVDcX5E=";
|
||||||
deepClone = true;
|
deepClone = true;
|
||||||
leaveDotGit = true;
|
leaveDotGit = true;
|
||||||
|
};*/
|
||||||
|
src = fs.toSource {
|
||||||
|
root = /home/charles/p3/YDB;
|
||||||
|
fileset = /home/charles/p3/YDB;
|
||||||
};
|
};
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
cmake
|
cmake
|
||||||
pkg-config
|
pkg-config
|
||||||
icu
|
icu73
|
||||||
git
|
git
|
||||||
|
zlib
|
||||||
|
libelf
|
||||||
|
binutils
|
||||||
|
libxcrypt
|
||||||
|
readline
|
||||||
|
tcsh
|
||||||
|
curl
|
||||||
|
file
|
||||||
|
binutils
|
||||||
|
ncurses
|
||||||
|
glibc
|
||||||
|
libgcc
|
||||||
];
|
];
|
||||||
|
/*
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
export HOME=$(pwd)
|
export HOME=$(pwd)
|
||||||
ls -la ../.git
|
|
||||||
echo $(pwd)
|
echo $(pwd)
|
||||||
pushd /build/YDB/
|
pushd /build/YDB/
|
||||||
git --no-pager tag --list
|
git config --global user.email "you@example.com"
|
||||||
|
git config --global user.name "Your Name"
|
||||||
git checkout -b tmp
|
git checkout -b tmp
|
||||||
|
touch a_file
|
||||||
|
git add a_file
|
||||||
|
git commit -am 'a_file makes index'
|
||||||
popd
|
popd
|
||||||
make -j12
|
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 = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
tmpdir=$(mktemp -d)
|
||||||
cp hello $out/bin/
|
make install DESTDIR=$tmpdir
|
||||||
|
echo "installed to $tmpdir"
|
||||||
|
cd $tmpdir/nix/store/*/yottadb_r201/
|
||||||
|
./ydbinstall --utf8 --installdir=$out
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user