fix: dream-lock.json example & impure translator template

This commit is contained in:
DavHau 2022-07-19 09:57:30 +02:00
parent adaae3473f
commit 67a96dc5cb
2 changed files with 8 additions and 5 deletions

View File

@ -1,11 +1,12 @@
{
"_generic": {
"subsystem": "python",
"defaultPackage": "requests",
"translatorArgs": "",
"location": "",
"packages": {
"requests": "1.2.3"
}
},
"subsystem": "python",
"sourcesAggregatedHash": null
},
"_subsystem": {

View File

@ -4,6 +4,8 @@
...
}: {
l = lib // builtins;
type = "impure";
/*
@ -59,8 +61,8 @@
jsonInput=$1
# read the json input
outputFile=$(${jq}/bin/jq '.outputFile' -c -r $jsonInput)
source=$(${jq}/bin/jq '.source' -c -r $jsonInput)
outputFile=$WORKDIR/$(jq '.outputFile' -c -r $jsonInput)
source=$(jq '.source' -c -r $jsonInput)
relPath=$(jq '.project.relPath' -c -r $jsonInput)
# TODO: