Paul Haerle
3772175693
Merge pull request #565 from nix-community/ci
...
ci: enable hercules
2023-07-10 14:17:04 +02:00
DavHau
27468aef5a
ci: enable hercules
2023-07-10 13:53:30 +02:00
DavHau
7f4d72ab1c
test(fetchPipMatadata): fix mistake in test
2023-07-10 13:51:50 +02:00
DavHau
49cc215538
refactor(fetchPipMetadata): minor refactoring after code review
2023-07-10 13:51:50 +02:00
DavHau
8da26fae21
chore: update lock files
2023-07-10 13:51:50 +02:00
DavHau
f9cd0c5cef
fix(v1/pip): bug in fetchPipMetadata when multiple roots are requested
...
So far, whenever multiple roots are requested, only the last one was respected for the lock file
Now all roots are merged into the `default` extra
2023-07-10 13:51:50 +02:00
DavHau
d0fe509a67
test(fetchPipMetadata): refactor test_path_in_nix_store
2023-07-10 13:51:50 +02:00
DavHau
cb6a70dfe3
test(fetchPipRequirements) monkeypatch nix_show_derivation
2023-07-10 13:51:50 +02:00
DavHau
52add48d47
refactor(fetchPipRequirements): refactor git_repo_root
...
default to the current directory
2023-07-10 13:51:50 +02:00
DavHau
013b7f98d1
ci: expose fetchPipMetadata package and build it
2023-07-10 13:51:50 +02:00
DavHau
e93f0f2aea
test(fetchPipMetadata): add more tests
2023-07-10 13:51:50 +02:00
DavHau
4e5ca7a690
refactor(fetchPipMetadata): raise Exception instead of sys.exit(1)
2023-07-10 13:51:50 +02:00
DavHau
2c4355b63d
tests(pip): initialize unit tests via pytest
2023-07-10 13:51:50 +02:00
DavHau
ca0847531b
devshell: include black into python
2023-07-10 13:51:50 +02:00
DavHau
f5c59d1c3d
chore(fetchPipMetadata): add devShell + .envrc
2023-07-09 10:23:08 +02:00
DavHau
19aeff457d
refactor(fetchPipMetadata): split package and script
2023-07-09 10:23:08 +02:00
DavHau
a380add69e
examples(nodejs): allow prettier-devshell derivation to be built
2023-07-08 15:03:31 +02:00
DavHau
99373e2956
ci: don't run .#update-locks
2023-07-08 13:28:03 +02:00
DavHau
9b4860243b
chore(v1): update all lock files
2023-07-08 13:28:03 +02:00
DavHau
4a849671a8
fix(nodejs): lower prio for buildScript default
2023-07-08 13:22:51 +02:00
DavHau
bf38888d90
examples(nodejs): remove example prettier-no-lock
2023-07-08 13:22:51 +02:00
DavHau
b38c4d9a2f
examples(nodejs): add example nodejs-no-lock
2023-07-08 13:22:51 +02:00
DavHau
6159824a2a
feat(lock): don't write empty lock file
...
... and delete ones which became empty
2023-07-08 13:02:07 +02:00
dependabot[bot]
9a59240b8a
chore(deps): bump cachix/install-nix-action from 17 to 22
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 17 to 22.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v17...v22 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-08 12:06:33 +02:00
dependabot[bot]
8bbed86d18
chore(deps): bump cachix/cachix-action from 10 to 12
...
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action ) from 10 to 12.
- [Release notes](https://github.com/cachix/cachix-action/releases )
- [Commits](https://github.com/cachix/cachix-action/compare/v10...v12 )
---
updated-dependencies:
- dependency-name: cachix/cachix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-08 12:05:56 +02:00
dependabot[bot]
b325fd6263
chore(deps): bump actions/checkout from 2.4.0 to 3.5.3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2.4.0 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2.4.0...v3.5.3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-08 12:05:35 +02:00
DavHau
42fc68180e
fix(github): fix dependabot file location
2023-07-08 11:23:51 +02:00
DavHau
8fe43a193d
feat(github): add dependabot
2023-07-07 21:34:04 +02:00
Jairo Llopis
e2f9f2c211
docs: fix typo on fetchers
2023-07-07 14:11:13 +02:00
Grégoire Geis
5a3e87301f
rust: add support for workspace-inherited crate versions
2023-07-04 21:43:35 +03:00
DavHau
ff71cd8e18
feat(nodejs-node-modules): ensure the .bin also exists in the local node_modules
...
This change allows to re-locate the node_modules directory via a single copy operation.
The current builder installs the .bin directory one level above the top-level package which isn't what we want for the node-modules output.
This change ensures that the .bin also exists within the local node_modules directory of the current package.
It also ensures that all symlinks are relative and don't point to store paths
2023-07-04 21:10:08 +03:00
DavHau
d67e213ed3
feat(v1): new modules nodejs-devshell
2023-07-04 21:10:08 +03:00
DavHau
65f7ad793b
feat(v1): new module nodejs-node-modules
2023-07-04 21:10:08 +03:00
Paul Haerle
07a24630e1
remove dream2nix-legacy drv-part... ( #549 )
...
as it's currently broken in requiring IFD during nix flake show.
2023-07-04 16:17:46 +02:00
Sridhar Ratnakumar
76fba001f3
docs/rust: Fix syntax error in fenix example ( #541 )
2023-07-01 22:28:40 +03:00
Florian Friesdorf
1fd0c83a4c
Some whitespace for lock file error formatting ( #544 )
...
* Some whitespace for lock file error formatting
* Fix typo
2023-07-01 21:33:29 +03:00
DavHau
429171bd07
fix(v1/nodejs-granular): allow empty mkDerivation.src
2023-06-29 16:59:41 +03:00
DavHau
b87571ee51
fix(nodejs/strict-builder): fix ID comparison
2023-06-29 16:57:27 +03:00
DavHau
f47929385c
feat(v1): pass dream2nix.lib to evalModules
2023-06-29 16:56:40 +03:00
DavHau
6b750b0138
fix(pip/lock_file_from_report.py): fix bug with set operation
2023-06-22 12:26:52 +02:00
Yueh-Shun Li
70ddec09f2
sourceOverrides: fix types and add documentation about the version ( #523 )
...
* sourceOverrides: fix type specification
* sourceOverrides: explain where to look for the overriding version
2023-06-22 10:43:29 +02:00
Paul Haerle
fc0bb61fa3
v1/pip: support building with a subset of locked extras ( #530 )
...
* fix(v1/pip): remove substitution opt...
...from the interface, as it's already gone in the implementation.
There's no direct replacement for binary substitutions anymore, use
nixpkgs-overrides as apropriate.
* feat(v1/pip): default to provided_extras for lock
* feat(v1/pip, breaking): introduce targets to lock.
...targets correspond to a set of python extra markers, e.g. "dev"
or "docs". We now write separate dependency trees for each requested
extra to the lock file.
We can then select a subset of those features using the new
"pip.buildExtras" option. Note that this option currently affects the
dependency tree only.
This approach is still not bullet proof, i.e. in cases where a
constraint of a package in "dev" changes the version of a package
in "default" during resolving.
2023-06-22 10:42:54 +02:00
DavHau
c99c233fc7
feat: nodejs + python mixed language derivation ( #528 )
...
* v1/examples/isso: init
* feat(v1): allow mixed lang drv with nodejs and python
* fix(nodejs): don't run make in build and instal phases
* fix(v1/nodejs): minor fixes
* fix(v1/nodejs): announce phases
* cleanup(v1): remove isso frontend and lock files
* revert(v1/pip): revert including all dependencies by default
* fix(v1/pip): define python version for submodule without IR
* fix(nodejs-package-json): always use npm v8 to generate lock file
* cleanup(nodejs-package-json): remove dead code
---------
Co-authored-by: phaer <hello@phaer.org>
2023-06-22 10:40:03 +02:00
Paul Haerle
088583b204
Merge pull request #532 from nix-community/update-v1-nixpkgs
...
update flake input nixpkgsV1
2023-06-22 01:06:34 +02:00
DavHau
a01d080fa0
fix(v1/nodejs-package-json): ensure npm < 9 is used
2023-06-21 17:00:17 +02:00
DavHau
d0bc947ef4
fix(drvs/apache-airflow): don't use nixpgks-overides
2023-06-21 15:22:25 +02:00
DavHau
6aecad7ef7
fix(pip): don't import nixpkgs-overrides by default
2023-06-21 15:22:04 +02:00
DavHau
3f47ac7490
update flake input nixpkgsV1
2023-06-21 14:49:19 +02:00
DavHau
0572dda8bd
Merge pull request #529 from nix-community/remove-mach-nix-xs
...
Replace mach-nix-xs/fetchPip with pip/fetchPipMetadata
2023-06-20 17:22:52 +02:00
phaer
421e32a822
chore(v1/mach-nix-xs): remove, superseeded by pip
...
The newer pip and fetchPipMetadata modules include sufficient
functionality to replace mach-nix-xs.
The last remaining example has been ported.
2023-06-16 12:19:12 +02:00