34 lines
734 B
Nix
34 lines
734 B
Nix
|
|
{ stdenv, fetchgit, pkgs }:
|
||
|
|
|
||
|
|
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;
|
||
|
|
};
|
||
|
|
buildInputs = with pkgs; [
|
||
|
|
cmake
|
||
|
|
pkg-config
|
||
|
|
icu
|
||
|
|
git
|
||
|
|
];
|
||
|
|
buildPhase = ''
|
||
|
|
export HOME=$(pwd)
|
||
|
|
ls -la ../.git
|
||
|
|
echo $(pwd)
|
||
|
|
pushd /build/YDB/
|
||
|
|
git --no-pager tag --list
|
||
|
|
git checkout -b tmp
|
||
|
|
popd
|
||
|
|
make -j12
|
||
|
|
'';
|
||
|
|
|
||
|
|
installPhase = ''
|
||
|
|
mkdir -p $out/bin
|
||
|
|
cp hello $out/bin/
|
||
|
|
'';
|
||
|
|
}
|