mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-11 20:28:07 +03:00
fix: dream-lock.json example & impure translator template
This commit is contained in:
parent
adaae3473f
commit
67a96dc5cb
@ -1,11 +1,12 @@
|
|||||||
{
|
{
|
||||||
"_generic": {
|
"_generic": {
|
||||||
"subsystem": "python",
|
|
||||||
"defaultPackage": "requests",
|
"defaultPackage": "requests",
|
||||||
"translatorArgs": "",
|
"location": "",
|
||||||
"packages": {
|
"packages": {
|
||||||
"requests": "1.2.3"
|
"requests": "1.2.3"
|
||||||
}
|
},
|
||||||
|
"subsystem": "python",
|
||||||
|
"sourcesAggregatedHash": null
|
||||||
},
|
},
|
||||||
|
|
||||||
"_subsystem": {
|
"_subsystem": {
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
|
||||||
|
l = lib // builtins;
|
||||||
|
|
||||||
type = "impure";
|
type = "impure";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -59,8 +61,8 @@
|
|||||||
jsonInput=$1
|
jsonInput=$1
|
||||||
|
|
||||||
# read the json input
|
# read the json input
|
||||||
outputFile=$(${jq}/bin/jq '.outputFile' -c -r $jsonInput)
|
outputFile=$WORKDIR/$(jq '.outputFile' -c -r $jsonInput)
|
||||||
source=$(${jq}/bin/jq '.source' -c -r $jsonInput)
|
source=$(jq '.source' -c -r $jsonInput)
|
||||||
relPath=$(jq '.project.relPath' -c -r $jsonInput)
|
relPath=$(jq '.project.relPath' -c -r $jsonInput)
|
||||||
|
|
||||||
# TODO:
|
# TODO:
|
||||||
|
Loading…
Reference in New Issue
Block a user