From 287dc1be7512bbf734182ed061cc991f17ddac1a Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 9 Jan 2022 02:59:15 +0100 Subject: [PATCH] pkgs/network-cypher-graphs: let import-network-graphs produce just a script --- nix/pkgs/network-cypher-graphs.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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})\"}]}" '';