Commit Graph

19 Commits

Author SHA1 Message Date
DavHau
400032c630 fetchers/git: fix set allRefs if ref not set 2024-04-09 06:10:40 +00:00
DavHau
b727a07775 override: unify overriding across modules
Add options `overrides.${name}` and `overrideAll` to all language modules that manage a dependency tree.

This is done in a backward compatible fashion. Old options for overriding dependencies continue working, though those are not displayed in the manual anymore.

For the following modules the manual now suggest using the new unified override options:
- for pip: use `pip.overrides` and `pip.overrideAll` instead of  `pip.drvs`
- for nodejs-granular-v3: use `nodejs-granular-v3.overrides` and `nodejs-granular-v3.overrideAll` instead of `nodejs-granular-v3.deps`
- `php-granular`: use `php-granular.override` and `php-granular.overrideAll` instead of `php-granular.deps`
2024-03-13 14:25:41 +07:00
DavHau
5a5ae25b04 fetching: set shallow=true for all fetchGit calls
This should lead to better performance
Also set allRefs=true in some places, as this reduces the risk of running into issues with older nix versions
2024-02-18 14:08:51 +07:00
Johannes Kirschbauer
df26fb319f simplify graph methods & add more tests for fileSystem 2024-01-19 12:02:18 +00:00
Johannes Kirschbauer
a27d3894ae
Feat/group pkgs versions (#757)
* add derived graph

* rework graph sanitizing based on list keys

* figure out details for builder

* format stuff!

* try get groups working

* nodejs: fixups for new v3 builder

Co-authored-by: Johannes Kirschbauer <hsjobeki@gmail.com>

---------

Co-authored-by: DavHau <hsngrmpf+github@gmail.com>
2024-01-18 19:56:00 +07:00
DavHau
1f680838ab lib: move to /lib from /modules/flake-parts/lib 2023-11-05 03:23:11 +00:00
DavHau
c6c1a430ff lib: move to /modules/flake-parts/lib 2023-10-24 23:08:13 +00:00
DavHau
c3c5769aba multi-derivation-package: init 2023-10-22 21:42:07 +00:00
DavHau
8b5ddd6fe9 lib/types: init 2023-10-22 20:53:02 +00:00
DavHau
19fce43579 selectWheel: init 2023-10-21 23:31:45 +00:00
DavHau
c3e07bf838 findCycles: revert to original file 2023-10-17 23:00:27 +00:00
hsjobeki
fb0a14d9f4 format 2023-10-17 23:00:27 +00:00
hsjobeki
a0c32a2333 add more graph utilities 2023-10-17 23:00:27 +00:00
DavHau
97d2648627 feat(lib/internal): add findCycles.nix 2023-09-06 10:37:43 +02:00
hsjobeki
44f946d814 init: package-lock.json V3 parser 2023-09-05 16:22:57 +02:00
DavHau
cf0bd2e99a
Port php to dream2nix modules (#623)
* init: composer

* initial attempt to translating composer lock

* fix(v1/php): use simpleTranslate2 instead of simpleTranslate

* chore: rebasing

* init: granular module

* lib/internal/simpleTranslate2: revert accidental changes

* php: fix php-granular builder module

* php-compser-lock: cleanup

---------

Co-authored-by: asrar <aszenz@gmail.com>
2023-08-29 17:47:13 +02:00
DavHau
9e2129d053 port buildRustPackage to drv-parts 2023-08-28 22:20:28 +00:00
DavHau
8843ecf03d feat(v1): port cargo-lock translator to drv-parts 2023-08-28 22:20:28 +00:00
DavHau
96a11d4197 move v1/nix to top-level 2023-07-19 15:53:03 +02:00