Commit Graph

1654 Commits

Author SHA1 Message Date
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
Arnout Engelen
fd490e1c9d
PHP: don't override patchPhase
The advantage is that this means the original `patchPhase` becomes
available again, so people can use `patches` in overrides.
2023-03-20 12:12:41 +01:00
DavHau
4aa6e86907 chore(v1): move name & version to top-level 2023-03-19 14:46:59 +07:00
DavHau
fa5668eef3 chore: remove unused arguments from some legacy modules 2023-03-19 14:25:53 +07:00
DavHau
13904ccd31 chore: fix comment in ./src/modules/builders/implementation.nix 2023-03-19 14:24:12 +07:00
DavHau
f6b2e4bd41 fix(devShell): remove pinned nix from devShell 2023-03-19 14:23:40 +07:00
DavHau
1038c66dce chore(v1): update drv-parts 2023-03-19 14:23:04 +07:00
DavHau
92caa82c50
Merge pull request #495 from raboof/no-root-for-dist-source
PHP: don't set rootName for `dist` type `path`
2023-03-18 18:46:42 +07:00
Arnout Engelen
c6fafff4c0
PHP: don't set rootName for dist type path
It looks like `rootName` should be set to the *parent* name,
but currently points at the name of the dependency component.

Fixes #488, though it seems this was changed intentionally by
@tinybeachthor in #311 (specifically 156d7e0f50),
so this might break something else?
2023-03-18 12:14:17 +01:00
DavHau
7f422cf4f3
Merge pull request #490 from raboof/document-adding-projects.toml-to-git
Document adding `project.toml` to git more explicitly
2023-03-17 19:47:28 +07:00
Arnout Engelen
0987c82ee2
Document adding project.toml to git more explicitly
Easy to miss for beginning users :)
2023-03-17 11:25:46 +01:00
DavHau
b33c9b858d
Merge pull request #489 from raboof/document-inspecting-generic-lockfile
Document inspecting the generic lockfile
2023-03-17 17:15:47 +07:00
Arnout Engelen
88b0e94dfa
Document inspecting the generic lockfile 2023-03-17 09:25:32 +01:00
DavHau
b33fb62466
Merge pull request #486 from phaer/merge-v1
v1: merge attrs-from-nixpkgs into nixpkgs-override
2023-03-17 12:36:02 +07:00
phaer
0007206ea1 feat: merge attrs-from-... into nixpkgs-overrides 2023-03-15 14:12:48 +01:00
DavHau
1d36c7f3ce
Merge pull request #485 from nix-community/merge-v1
Init module system based dream2nix (towards V1 API)
2023-03-13 19:53:45 +07: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
DavHau
d96e7234e3 chore(formatting): format v1 code with alejandra 2023-03-13 12:46:11 +07:00
DavHau
3cf6d7fcac chore(formatting): use alejandra from nixpkgs 2023-03-13 12:46:11 +07:00
DavHau
ac63eb584f feat: integrate v1 into top-level fake 2023-03-13 12:46:11 +07:00
DavHau
93102e5fdf feat(mach-nix): init module nixpkgs-overrides 2023-03-13 12:46:11 +07:00
DavHau
6210b38ef3 chore: switch nixpkgs to nixos-22.11 and update FOD hashes 2023-03-13 12:46:11 +07:00
phaer
71c396138c feat(mach-nix): use drv-parts for dependencies. 2023-03-13 12:46:11 +07:00
phaer
52a6fc802a style(mach-nix): add makeModuleFromDerivation 2023-03-13 12:46:11 +07:00
phaer
d1ff045a1b style(mach-nix): manualSetupDeps -> mkWheelDist 2023-03-13 12:46:11 +07:00
phaer
173d76b688 feat(mach-nix): wip, split nixpkgsAttrs -> module 2023-03-13 12:46:11 +07:00
phaer
169da1c545 style(mach-nix): refactor wheel preparation 2023-03-13 12:46:11 +07:00
phaer
61c0f29e86 style(mach-nix): reorder, consolidate distDir...
..naming, inline isWheel
2023-03-13 12:46:11 +07:00
phaer
6fd4c8a93b chore(mach-nix): inline only use of getDistDir 2023-03-13 12:46:11 +07:00
DavHau
c04a8a7ea7 chore: adapt to apache-airflow to new interface 2023-03-13 12:46:11 +07:00
DavHau
30e04b5316 feat(mach-nix): cache dependency tree 2023-03-13 12:46:11 +07:00
DavHau
faec8a4156 feat: add buildPythonPackage module 2023-03-13 12:46:11 +07:00
DavHau
39cc8d24f4 update FOD hash of apache-airflow 2023-03-13 12:46:11 +07:00
DavHau
2cdc1aa0e0 feat: use dependency tree only for sdist builds 2023-03-13 12:46:11 +07:00
DavHau
8ea18aa69a fix(python): nativeBuildInputs not applied 2023-03-13 12:46:11 +07:00
phaer
123e6cfe7a wip: use new drv-parts mkDerivation interface 2023-03-13 12:46:11 +07:00
phaer
b2024ad22e move dependency analysis to fetch-python-reqs...
..to require only one IFD
2023-03-13 12:46:11 +07:00
phaer
e5a8cd6e69 chore, mach-nix-xs: use dict for dep tree 2023-03-13 12:46:11 +07:00
phaer
5427ea668e fetch-python-requirements: make more robust...
...and handle packages which might not even contain
a PKG_INFO. They could still include requirements.txt, otherwise
no dependencies are assumed.
2023-03-13 12:46:11 +07:00
phaer
724ed96702 use drv-parts.derivationFromModules for deps 2023-03-13 12:46:11 +07:00