DavHau
0e9553062c
nodejs-granular-v3: use new nodejs-package-lock-v3 module
...
Also add an example package
2023-09-05 18:52:42 +02:00
DavHau
0d3be890a7
nodejs-granular-v3: init (copy from nodejs-granular)
2023-09-05 18:52:42 +02:00
DavHau
d7a037e723
fix(nodejs-package-lock-v3): handle multiple versions & auto load packageLock
2023-09-05 18:45:57 +02:00
DavHau
1202352107
checks.nix-unit: fix nix-unit call
2023-09-05 16:22:57 +02:00
hsjobeki
44f946d814
init: package-lock.json V3 parser
2023-09-05 16:22:57 +02:00
Ryan Gibb
00b2b09551
typo ( #640 )
...
Co-authored-by: DavHau <hsngrmpf+github@gmail.com>
2023-09-05 10:52:31 +02:00
DavHau
1b35cc9644
.github: update dependencies
2023-09-05 10:44:38 +02:00
Vincent Vanlaer
3fd2db74d3
Support git repositories in fetchPipMetadata; take 2 ( #637 )
...
* Make pip lock script use its own python version
To make the lock script independent of the python version used in the
user's project, it needs to use its own python environment. This was
already the case for the mitm proxy, but not yet for the lock script
itself. This commit ensures that the lock script uses its own python
environment, independent of the user python version, and shares it with
the mitm proxy.
* Fix IOKit dependency in htop example
* Add hash for git based packages
* Support install git dependencies
* Add test for pip with git dependency
* Update lockfiles for python example projects
This does not change any of the hashes or versions, just adds the type:
"url" property.
---------
Co-authored-by: DavHau <hsngrmpf+github@gmail.com>
2023-09-05 00:40:05 +02:00
DavHau
b40d88b4c3
examples: pick cheaper packages for nodejs
...
spare some eval time on CI checks
2023-09-05 00:03:21 +02:00
DavHau
29bd1c8f85
.github: remove format test (already executed by hercules)
2023-09-04 23:47:47 +02:00
DavHau
b34ce70fdf
refactor(examples): more meaningful names
2023-09-04 23:45:08 +02:00
DavHau
469d4bf343
fetchPipMetadata: fix devShell
2023-09-04 23:43:30 +02:00
DavHau
b296c9c868
examples: remove use of l = builtins // lib
...
Having this in the examples might confuse people
2023-09-04 21:30:27 +00:00
DavHau
1c959a708c
fix(pip): missing writeText dependency
2023-09-04 03:51:56 +00:00
DavHau
e0d25af360
refactor(fetchPipMetadata)
...
- add flake-module.nix
- remove custom logic to find the repo root
- use findRoot script to find repo root
- use gitMinimal instead of git
- use separate python version for lock script than the python version to lock for. This prevents rebuilds and allows defining a standalone fetchPipMetadata package
2023-09-03 22:47:21 +00:00
DavHau
5418f890b9
examples: add .project-root
2023-09-03 22:47:21 +00:00
DavHau
cb801a7994
fix(pip): conflicting override priority
2023-09-03 12:35:07 +00:00
DavHau
f9ccbf3e3f
feat(pip): add .devShell attribute to package
2023-09-03 12:35:07 +00:00
DavHau
203cd1c656
fix(pip): remove default for format
...
This prevents an error where mkDerivation.src is coerced to a string while it is null which leads to hard to debug scenarios
I don't think we need this default logic for the top-level. The logic is still kept for the dependencies.
2023-09-03 12:10:23 +00:00
DavHau
e2470b3171
fix(paths): fix computation of lock and cache file paths
2023-09-03 10:28:43 +00:00
DavHau
63fe4be09c
fix(examples): use settings.nix
2023-09-03 08:32:17 +00:00
DavHau
165014ec90
examples: add dream2nix-repo-flake
2023-09-03 08:25:17 +00:00
DavHau
ddbd3a159b
example-repo: use dream2nix.lib.evalModules
2023-09-03 01:09:42 +00:00
DavHau
e57f78ac0d
Revert "Add hash for git based packages"
...
This reverts commit 5f28fd1c9f
.
2023-09-02 23:50:02 +00:00
DavHau
5d561bbf35
Revert "Support install git dependencies"
...
This reverts commit ecffc169c3
.
2023-09-02 23:50:02 +00:00
DavHau
46f45ab34d
Revert "Fixup fetchPipMetadata shell.nix"
...
This reverts commit c88ea06677
.
2023-09-02 23:50:02 +00:00
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