update docs and dream.lock example

This commit is contained in:
DavHau 2021-10-12 22:01:39 +07:00
parent 7edf7cbf1d
commit 89e0b3633d
2 changed files with 23 additions and 24 deletions

View File

@ -61,10 +61,10 @@ The general architecture should consist of these components:
└───────┬──┘ ▼ └───────┬──┘ ▼
▲ │ ┌────────────┐ ▲ │ ┌────────────┐
│ └──►│Generic Lock│ │ └──►│Generic Lock│
└─────────┬──┘ └─────────┬──┘
impure/pure │ ┌────────┐ - pure-nix │ ┌────────┐
online/offline ├──►│Fetcher │◄── Same across all - IFD / recursive-nix ├──►│Fetcher │◄── Same across all
pure-nix/IFD/external │ └────────┘ languages/frameworks - impure (external) │ └────────┘ languages/frameworks
│ ▼ │ ▼
│ ┌────────┐ │ ┌────────┐
└──►│Builder │◄── Reads extra metadata └──►│Builder │◄── Reads extra metadata

View File

@ -1,31 +1,15 @@
{ {
"sources": {
"requests": {
"url": "https://download.pypi.org/requests/2.28.0",
"hash": "000000000000000000000000000000000000000",
"version": "1.2.3",
"type": "fetchurl"
},
"certifi": {
"url": "https://download.pypi.org/certifi/2.0",
"hash": "000000000000000000000000000000000000000",
"version": "2.3.4",
"type": "fetchurl"
}
},
"generic": { "generic": {
"buildSystem": "python", "buildSystem": "python",
"translatedBy": "python.pure.poetry", "translatedBy": "python.impure.pip",
"translatorParams": "--flag_application", "translatorArgs": "",
"mainPackage": "requests", "mainPackage": "requests",
"dependencyCyclesRemoved": true, "removedDependencies": true,
"dependencyGraph": { "dependencyGraph": {
"requests": [ "requests": [
"certifi" "certifi"
] ]
}, }
"sourcesCombinedHash": "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef"
}, },
"buildSystem": { "buildSystem": {
@ -34,5 +18,20 @@
"requests": "sdist", "requests": "sdist",
"certifi": "wheel" "certifi": "wheel"
} }
},
"sources": {
"requests#1.2.3": {
"url": "https://download.pypi.org/requests/2.28.0",
"hash": "000000000000000000000000000000000000000",
"version": "1.2.3",
"type": "fetchurl"
},
"certifi#2.3.4": {
"url": "https://download.pypi.org/certifi/2.0",
"hash": "000000000000000000000000000000000000000",
"version": "2.3.4",
"type": "fetchurl"
}
} }
} }