From 67a96dc5cb2d00b288401a46fa8b65f3f57da7a0 Mon Sep 17 00:00:00 2001 From: DavHau Date: Tue, 19 Jul 2022 09:57:30 +0200 Subject: [PATCH] fix: dream-lock.json example & impure translator template --- src/specifications/dream-lock-example.json | 7 ++++--- src/templates/translators/impure.nix | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/specifications/dream-lock-example.json b/src/specifications/dream-lock-example.json index 8168e146..85d34e80 100644 --- a/src/specifications/dream-lock-example.json +++ b/src/specifications/dream-lock-example.json @@ -1,11 +1,12 @@ { "_generic": { - "subsystem": "python", "defaultPackage": "requests", - "translatorArgs": "", + "location": "", "packages": { "requests": "1.2.3" - } + }, + "subsystem": "python", + "sourcesAggregatedHash": null }, "_subsystem": { diff --git a/src/templates/translators/impure.nix b/src/templates/translators/impure.nix index baf7dbd7..e716b92b 100644 --- a/src/templates/translators/impure.nix +++ b/src/templates/translators/impure.nix @@ -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: