diff --git a/nix/pkgs/network-cypher-graphs.nix b/nix/pkgs/network-cypher-graphs.nix index aabd04e..f9d5dc7 100644 --- a/nix/pkgs/network-cypher-graphs.nix +++ b/nix/pkgs/network-cypher-graphs.nix @@ -162,7 +162,9 @@ in rec { }; - import-network-graphs = runCommand "import-network-graphs" {} '' + import-network-graphs = writeScriptBin "import-network-graphs" '' + #! ${runtimeShell} -e + ${curl}/bin/curl -X POST -H 'Content-type: application/json' http://localhost:7474/db/data/transaction/commit -d "{\"statements\": [{\"statement\": \"$(cat ${physical-cypher-graph})\"}]}" ${curl}/bin/curl -X POST -H 'Content-type: application/json' http://localhost:7474/db/data/transaction/commit -d "{\"statements\": [{\"statement\": \"$(cat ${logical-cypher-graph})\"}]}" '';