DavHau
f96eb79476
feat(legacy): rename legacy -> dream2nix-legacy
2023-03-26 18:04:22 +08:00
DavHau
18d8a016fa
feat(v1): add nodejs package prettier
2023-03-26 17:55:21 +08:00
DavHau
6efc60882a
feat(legacy): handle source, sourceOverrides, packageOverrides
2023-03-26 17:54:56 +08:00
DavHau
41c56eb788
feat(legacy): make translator, builder, etc.. configurable
2023-03-26 16:35:40 +08:00
DavHau
47a1f48203
chore(v1/compat): rename to dream2nix-legacy
2023-03-26 16:20:36 +08:00
DavHau
d2ab5ae4d8
feat(v1): init compat module for pure legacy translators
2023-03-26 16:14:43 +08:00
DavHau
3b112c98b8
feat(nixpkgs-overrides): intersect attrs properly with mkDerivation and buildPythonPackage args
2023-03-25 00:15:18 +08:00
DavHau
1c9ac6b462
fix(mach-nix): mkDefault for builtPythonPackage.format
2023-03-25 00:15:18 +08:00
DavHau
aac492c957
fix(apps.update-locks): declare dependency in writers.nix
2023-03-25 00:15:18 +08:00
DavHau
56d9e582bd
chore(fetchPip): rename maxDate -> pypiSnapshotDate
2023-03-24 12:13:29 +08:00
DavHau
88b056bf6a
chore(v1/apps): rename internals
2023-03-24 11:47:49 +08:00
DavHau
f91d7e0928
chore(lock): improve extracting hash from drv file
2023-03-24 11:41:46 +08:00
DavHau
d31b5e1954
chore(v1/drvs): update all locks
2023-03-23 18:14:12 +08:00
DavHau
b38481532d
fix(lock): output FOD hashes in SRI format
2023-03-23 18:13:59 +08:00
DavHau
80b0f7148d
feat(v1/drvs): make all packages use the fetch-pip module and update hashes
2023-03-23 17:20:28 +08:00
DavHau
9e5219f26f
feat(apps.update-locks): add script to update all locks
2023-03-23 17:19:53 +08:00
DavHau
edeec27a5b
feat(mach-nix): set feakeSha256 as default for fetchPipHash
2023-03-23 17:18:17 +08:00
DavHau
c624dd0286
feat(lock): allow to define defaults for values
...
This can be used to prevent infinite recursions if the script for a value itself depends on the value
2023-03-23 17:17:32 +08:00
DavHau
c8ca8e6aa0
fix(fetchPypi): Use default python version for mitmproxy
...
- this increases stability and cache hits
2023-03-23 17:11:04 +08:00
DavHau
96873569bf
feat(mach-nix): use fetch-pip and set defaults
2023-03-23 14:41:22 +08:00
DavHau
1e4e1cdaf5
chore(ansible): make use of fetch-pip module
2023-03-23 14:31:22 +08:00
DavHau
877c290f1e
feat(mach-nix): allow module for pythonSources
2023-03-23 14:30:22 +08:00
DavHau
d0bf948eb5
feat(fetch-pip): init module fetch-pip
2023-03-23 14:28:49 +08:00
DavHau
17a8993d88
feat(lock): several features
...
- don't allow nested fields in lock file (can lead to infinite recursion)
- don't modify FOD
- shortcut if output is cached -> inherit hash from drv
2023-03-23 14:27:25 +08:00
DavHau
f2b02bc056
chore(v1): remove some packages from checks (temporarily)
2023-03-22 23:30:58 +08:00
DavHau
694d895f2c
fix(nixpkgs-overrides): fix attrs from nixpkgs not applied
2023-03-22 23:17:55 +08:00
phaer
bd4b8b36a6
fix(fetchPip): re-add requirements.txt support
2023-03-22 23:17:55 +08:00
phaer
fa58684291
fix(eval-cache): prevent infinite recursion in doc
2023-03-22 23:17:55 +08:00
phaer
a47ec7511a
fix(nixpkgs-overrides): only extract existing pkgs
2023-03-22 23:17:55 +08:00
phaer
eb9e70bdd2
feat(fetch-python-reqs): read egg-info, not...
...
...requirements.txt. The latter was a dirty hack as its meant for
environments and doesn't really include package metadata.
egg-info + dist info seems to cover most of pypi.
2023-03-22 23:17:55 +08:00
DavHau
dce1cbc2ef
feat(updateFODHash): fixes + rename to compureFODHash
2023-03-22 23:09:08 +08:00
DavHau
a984457902
fix(lock): fix config.name refs and makeDrv
2023-03-22 12:50:03 +08:00
phaer
2f162e68e8
chore(lock): move updateFODHash to lock part
2023-03-22 12:03:41 +08:00
phaer
530a05eec0
fix(lock): simplify & clarify log msg...
...
We don't need to build dependencies separately anymore, as we now check
the drv_path in the nix build log.
Also, the hash found does not have to be "new", it could be the same as
before.
2023-03-22 12:03:41 +08:00
phaer
7ba5d4abc9
feat(lock): re-implement in python...
...
as discussed during the last weekly, where we've implemented a
prototype, this replaces the nix + jq magic with python.
it requires more SLOCs and error handling could further be improved,
but i think it helps readability and makes the logic of parsing
nix build logs a bit more robust by checking that we get a hash
for the drv_path we expected.
Empty hash is replaced by l.fakeSha256 to silence a nix warning.
2023-03-22 12:03:41 +08:00
DavHau
8a85ff2904
feat(lock): init lock module for generic locking via json file
2023-03-22 12:03:41 +08:00
DavHau
58e6e18ce4
chore(fetchPip): remove unused args
2023-03-22 10:53:55 +08:00
DavHau
f04f032418
Handle zip files in write-dependency-tree
...
Authored-by: @phaer
2023-03-21 12:53:50 +07:00
DavHau
b1b5887ce8
chore(fetchPythonRequirements): rename to fetchPip
2023-03-21 12:44:05 +07:00
DavHau
a677084257
chore(fetchPythonRequirements): refactor code
...
- add and improve comments
- reduce nesting in several places
- move requirementsFiles flag logic to python
- MAX_DATE -> maxDate
- respect column 80 wherever possible
2023-03-21 12:35:54 +07:00
DavHau
4aa6e86907
chore(v1): move name & version to top-level
2023-03-19 14:46:59 +07:00
phaer
0007206ea1
feat: merge attrs-from-... into nixpkgs-overrides
2023-03-15 14:12:48 +01:00
DavHau
e8e2978bd4
chore(v1/drvs): update json cache files
2023-03-13 13:38:35 +07:00
DavHau
2404e5e449
fix(v1/eval-cache): several fixes
2023-03-13 13:36:52 +07:00
DavHau
fe667757c8
chore(v1/docs): add doc comments to some flake-parts modules
2023-03-13 12:46:11 +07:00
DavHau
7f2d9e53fa
fix(format): reformat write-dependency-tree.py
2023-03-13 12:46:11 +07:00
DavHau
182cdf306d
fix(v1/packages): update FOD hashes for all python packages
2023-03-13 12:46:11 +07:00
DavHau
969847352f
fix(v1/packages): only output for x86_64-linux
2023-03-13 12:46:11 +07:00
DavHau
d152844a15
fix(fetchPythonRequirements): output sorted dict
2023-03-13 12:46:11 +07:00
DavHau
600a2cbecc
chore(formatting): reformat v1 code - python files
2023-03-13 12:46:11 +07:00