File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ { pkgs ? import <nixpkgs> { } , stdenv ? pkgs . stdenv } :
2+ let
3+ xvfb-run-stderr = pkgs . xvfb_run . overrideAttrs ( drv : {
4+ # Patch the wrapped program by appending this to the buildCommand
5+ buildCommand = drv . buildCommand + ''
6+
7+ patch $out/bin/.xvfb-run-wrapped << 'HERE'
8+
9+ --- xvfb-run 2019-02-28 06:18:21.000000000 +0000
10+ +++ xvfb-run 2019-03-04 12:37:31.129377336 +0000
11+ @@ -178,7 +178,7 @@
12+
13+ # Start the command and save its exit status.
14+ set +e
15+ -DISPLAY=:$SERVERNUM XAUTHORITY=$AUTHFILE "$@" 2>&1
16+ +DISPLAY=:$SERVERNUM XAUTHORITY=$AUTHFILE "$@"
17+ RETVAL=$?
18+ set -e
19+ HERE
20+ '' ;
21+ } ) ;
22+ node = pkgs . nodejs-14_x ;
23+ yarn = pkgs . yarn . override { nodejs = node ; } ;
24+ in
25+ pkgs . mkShell {
26+ buildInputs = [
27+ pkgs . nodePackages . prettier
28+ pkgs . racket
29+ pkgs . coreutils
30+ pkgs . entr
31+ pkgs . docker
32+ pkgs . curl
33+ node
34+ yarn
35+ xvfb-run-stderr
36+ ] ;
37+ shellHook = ''
38+ echo "settup env"
39+ curl -s -I "localhost:8529" | grep 'Server: *ArangoDB' 2>/dev/null >/dev/null || (
40+ echo "Start arango"
41+ docker run -d --name "graphredex-db" -p 8529:8529 -e ARANGO_ROOT_PASSWORD="yolo" arangodb/arangodb:3.7.2 || docker start graphredex-db
42+ echo "wait..."
43+ sleep 5s
44+ )
45+ export ARANGO_ROOT_PASSWORD="yolo"
46+ '' ;
47+ }
You can’t perform that action at this time.
0 commit comments