Skip to content

Instantly share code, notes, and snippets.

@codedmart

codedmart/Error Secret

Created February 10, 2017 15:14
Show Gist options
  • Save codedmart/324843c31981b70be59f63fd9fb82a2b to your computer and use it in GitHub Desktop.
Save codedmart/324843c31981b70be59f63fd9fb82a2b to your computer and use it in GitHub Desktop.
#{ stdenv, fetchFromGitHub, openssl, zlib, python2Packages, bash, go, readline }:
let
inherit (python2Packages) python gyp;
in stdenv.mkDerivation rec {
version = "3.1.10.1";
name = "arangodb-${version}";
src = fetchFromGitHub {
repo = "arangodb";
owner = "arangodb";
rev = "16ff3e642e6d03b097a5d4dfcb1c044ecedc9acc";
sha256 = "01fnhhbgmyzcq82a4lp262laiwrv9rllh7z4rz76ss0gjvj1ryyv";
};
#postPatch = ''
#substituteInPlace 3rdParty/V8-3.31.74.1/build/gyp/gyp --replace /bin/bash ${bash}/bin/bash
#substituteInPlace 3rdParty/etcd/build --replace /bin/bash ${bash}/bin/bash
#sed '1i#include <cmath>' -i arangod/Aql/Functions.cpp \
#-i lib/Basics/string-buffer.cpp
#'';
postPatch = ''
substituteInPlace 3rdParty/V8/V8-5.0.71.39/build/gyp/gyp --replace /bin/bash ${bash}/bin/bash
'';
buildInputs = [
openssl zlib python gyp go readline cmake
];
configureFlagsArray = [ "--with-openssl-lib=${openssl.out}/lib" ];
NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow";
enableParallelBuilding = true;
meta = with stdenv.lib; {
homepage = "https://github.com/arangodb/arangodb";
description = "A native multi-model database with flexible data models for documents, graphs, and key-values";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = [ maintainers.flosse ];
};
}
cannot write to file '/nix/store/mcfd6ihs2q0qf9sqgy86w8zwkc5awrmk-arangodb-3.1.10.1/var/log/arangodb3/arangod.log': Permission denied
2017-02-10T15:05:31Z [31261] FATAL cannot convert username 'arangodb' to numeric uid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment