DavHau
6cc8c3fee2
Revert "Add test for pip with git dependency"
...
This reverts commit d2885f9e03
.
2023-09-02 23:50:02 +00:00
Vincent Vanlaer
d2885f9e03
Add test for pip with git dependency
2023-09-02 23:41:36 +00:00
Vincent Vanlaer
c88ea06677
Fixup fetchPipMetadata shell.nix
2023-09-02 23:41:36 +00:00
Vincent Vanlaer
ecffc169c3
Support install git dependencies
2023-09-02 23:41:36 +00:00
Vincent Vanlaer
5f28fd1c9f
Add hash for git based packages
2023-09-02 23:41:36 +00:00
DavHau
ec55d1d74b
cleanup: remove commented code
2023-09-02 23:38:22 +00:00
DavHau
1f071813d3
chore: update all lock files and move to new location
2023-09-02 23:34:54 +00:00
DavHau
87722db970
feat(paths): init new core module 'paths'
...
This is to improve package location finding at eval time and script execution time.
Deprecates options lock.{repoRoot,lockFileRel} as well as option eval-cache.{repoRoot, cacheFileRel}
Instead the user must now set:
- paths.projectRoot: pointing to the repoRoot
- paths.package: pointing to the package directory
- paths.projectRootFile can be used to define a marker file to find the project root. The default is '.git' but it could be set to 'flake.nix' for example
- lock files are by default put in the same directory as the package definition
2023-09-02 23:34:54 +00:00
DavHau
39885acca7
deps: simplify example
2023-09-02 19:35:04 +00:00
DavHau
c5f5b03944
refactor: rename modules.drv-parts => modules.dream2nix
2023-08-31 13:09:43 +00:00
DavHau
f4371d3e9b
refactor(examples): re-categorize
...
new categories:
- basics
- single-language
- multi-language
2023-08-31 12:53:22 +00:00
dependabot[bot]
61d7dbf039
chore(deps): bump actions/checkout from 3.5.3 to 3.6.0
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3.5.3 to 3.6.0.
- [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/v3.5.3...v3.6.0 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-08-29 17:49:49 +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
9b721a5cd3
feat(rust-crane): get rid of depsDrvOptions and use mkDerivation as a submodule instead
2023-08-28 22:20:28 +00:00
DavHau
42ac2de3a3
feat(rust-crane): use mkDerivation instead of mainDrvOptions
2023-08-28 22:20:28 +00:00
DavHau
2954969468
refactor(rust-crane): move crane dependency out of config.deps
2023-08-28 22:20:28 +00:00
Yusuf Bera Ertan
6e8a22196b
feat(rust): pass mkDerivation options to crane options, add options to specify arguments for main and deps derivations
2023-08-28 22:20:28 +00:00
Yusuf Bera Ertan
5b4775c457
refactor: remove devshell code from buildRustPackage
2023-08-28 22:20:28 +00:00
Yusuf Bera Ertan
39a895d579
feat(rust): add some options to crane builder, move rust drvs to examples dir
2023-08-28 22:20:28 +00:00
Yusuf Bera Ertan
b2ca3da052
feat(rust): port crane builder
2023-08-28 22:20:28 +00:00
Yusuf Bera Ertan
55b0141465
docs(rust): update some comments
2023-08-28 22:20:28 +00:00
DavHau
4ef27221f7
feat(rust): move v1/nix/modules to modules
2023-08-28 22:20:28 +00:00
DavHau
064c06a7ad
rust: backport #525 : add support for workspace-inherited crate versions
...
https://github.com/nix-community/dream2nix/pull/525
2023-08-28 22:20:28 +00: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
69560f5128
chore(v1): get rid of dreamLockUtils.nix
2023-08-28 22:20:28 +00:00
DavHau
4663912a1c
tests: add nix unit tests for pip module
2023-08-28 15:27:03 +00:00
DavHau
678272fa4e
pip: add internal option pip.rootDependencies
...
- this allows to select the rootDependencies manually or via an additional module like pip-hotfixes
2023-08-28 15:27:03 +00:00
DavHau
8ffd5e2485
example: add pyproject example package
2023-08-28 15:27:03 +00:00
DavHau
6646e20dfb
refactor(pip): move flattenDependencies and ignoredDependencies to separate module pip-hotfixes
2023-08-28 15:27:03 +00:00
DavHau
b58cc53fac
feat(pip): add option ignoredDependencies, to ignore dependencies like wheel
...
also add unzip to native build inputs to allow .zip sdist files
2023-08-28 15:27:03 +00:00
DavHau
919cd21990
feat(pip): add option flattenedDependencies for requirements specifications without root
2023-08-28 15:27:03 +00:00
DavHau
66658fb429
pip: fix bug with parsing requirements
...
When parsing the pip report, parsing some requirements could fail, as the packaging library used for the parsing was different from the one used by pip internally.
This makes sure that always the pip internals packaging library is used, which should prevent inconsistencies like that.
2023-08-28 15:27:03 +00:00
DavHau
3dd23864cb
pip: don't crash on cycles, fix them instead
...
pip does allow cycles and they are common in larger dependency trees. Instead of crashing on them, we should allow the user to deal with them.
As a result of this, it can happen that during the installation of individual dependencies, some dep(s) might be missing, which then can be fixed by including them manually or with a `--no-deps`
2023-08-28 15:27:03 +00:00
DavHau
5724c1e389
lib.evalModules: fix reference to modules
2023-08-28 15:27:03 +00:00
DavHau
035773d54d
pip: fix devshell
2023-08-28 15:27:03 +00:00
DavHau
41e2993c31
benchmarks: configure number of env variables via $2
2023-08-08 22:49:20 +00:00
DavHau
01496bcc72
modules: add standalone flake
2023-08-07 13:51:03 +00:00
DavHau
995aca8d7d
all-modules: ignore files in module directory
2023-08-07 13:51:03 +00:00
DavHau
deb25a354f
benchmarks: pkg-funcs vs. modules
2023-08-07 11:52:59 +00:00
DavHau
7b96349dd4
notes: add notes/module-system-problems.md
2023-08-06 13:22:48 +00:00
DavHau
352d44bcc9
docs: remove v1 draft API docs from index
...
... but keep the md files. There are still valuable drafts which are not yet implemented
2023-08-06 10:12:41 +00:00
Mihai Fufezan
5d05eaaad0
fetchPipMetadata: compute hash for non-FOD paths
2023-08-06 11:52:07 +02:00
InLaw
89bab978fc
fix internal links after v1 restructuring ( #612 )
...
Co-authored-by: aedsm <service@analytics-endeavor.de>
2023-08-01 16:17:25 +02:00
DavHau
c3f184f09f
docs: link examples from the docs
2023-07-29 15:29:06 +02:00
DavHau
d48babc7b5
examples: improve dream2nix-repo example
2023-07-29 15:29:06 +02:00
DavHau
8f36c5b85e
Merge pull request #609 from nix-community/docs
...
examples: move to /examples from /modules/drvs
2023-07-29 15:10:20 +02:00
DavHau
890d60bcb4
examples: move to /examples from /modules/drvs
2023-07-29 15:08:40 +02:00
DavHau
d7238d66f3
docs: migrate docs from drv-parts
2023-07-29 13:28:22 +02:00
DavHau
30b117c7f8
Merge pull request #607 from nix-community/drv-parts
...
migrate drv-parts into dream2nix
2023-07-29 12:44:51 +02:00