dusk
c93972bd52
fix(translator/cargo-lock): prioritize workspaceToml for path dependencies ( #128 )
...
* fix(translator/cargo-lock): prioritize workspaceToml for path dependencies
* fix(builder/rust): replace paths with quotation marks so we dont accidentally replace features
2022-04-26 00:10:59 +02:00
dusk
c303f3a754
Attempt to fix #113 ( #115 )
...
* fix(translator/cargo-lock): flatten workspace member paths to fix coerce error
* wip
* get a list of crates in discover and pass to translator
* prevent re-reading directory tree
Co-authored-by: DavHau <hsngrmpf+github@gmail.com>
* fix path dependency creation
* use correct attr path
* get subsystemInfo properly
* fix discoverCrates
* default to empty subsystemInfo.crates
* fix replacePathsWithAbsolute
* fix hasAttr usage
* dont put fullPath in subsystemInfo
Co-authored-by: DavHau <hsngrmpf+github@gmail.com>
2022-04-25 01:32:29 +02:00
DavHau
f8796aba28
Merge pull request #127 from happysalada/fix_electron_darwin_hook
...
electron: fix darwin build
2022-04-24 21:05:43 +02:00
DavHau
b68a9ee61c
add: dlib.sanitizePath
2022-04-24 20:40:42 +02:00
happysalada
262e647b67
electron: fix darwin build
2022-04-24 11:25:03 -04:00
DavHau
3e5f4351be
Merge pull request #125 from happysalada/add_esbuild_013
...
esbuild: add 0.13 override
2022-04-24 16:25:37 +02:00
DavHau
2dfefb2a2b
Merge pull request #124 from happysalada/readme_add_example
...
Readme add example
2022-04-24 16:23:05 +02:00
happysalada
c9fc71535a
esbuild: add 0.13 override
2022-04-24 09:19:43 -04:00
happysalada
e478b3c950
readme: add special format example
2022-04-24 09:12:28 -04:00
DavHau
40d3e16050
improve resolveImpure error message
...
closes #111
2022-04-24 12:46:02 +02:00
DavHau
a5c7c45b61
Merge pull request #123 from nix-community/translator-unit-tests
...
Automatically generate unit tests for pure translators
2022-04-24 12:12:03 +02:00
DavHau
31c258880c
add unit tests for cargo-lock translator
2022-04-24 12:05:04 +02:00
DavHau
3a293cc914
automatic unit tests for pure translators
...
- translators can now enable unit tests via `generateUnitTestsForProjects`
2022-04-24 12:04:08 +02:00
DavHau
f463c07660
readme: add extensive example flake.nix
...
Also update wording
Closes #122
2022-04-24 11:26:36 +02:00
DavHau
b074520f3f
Merge pull request #118 from happysalada/esbuild_remove_version_check
...
esbuild: remove version check
2022-04-24 10:12:29 +02:00
DavHau
d38893059d
Merge pull request #119 from happysalada/zip_fix_darwin
...
7zip fix darwin build
2022-04-24 09:20:23 +02:00
happysalada
f240585fa2
7zip fix darwin build
2022-04-23 21:14:47 -04:00
happysalada
1ef835142f
esbuild: remove version check
2022-04-23 20:50:33 -04:00
DavHau
596ac91bdc
Merge pull request #116 from happysalada/add_esbuild_override
...
ebuild 0.14
2022-04-23 19:19:22 +02:00
happysalada
58a75a5dc3
overrides: esbuild 0.14
2022-04-23 12:01:54 -04:00
DavHau
d47b764ef7
refactor: move simpleTranslate2 to dlib
2022-04-23 15:52:46 +02:00
DavHau
e7102302c9
remove deprected ./tests/impure
2022-04-23 15:11:57 +02:00
DavHau
5f8841c794
optimize tests for examples
2022-04-23 15:09:55 +02:00
DavHau
60d9308a7b
refactor: wrapPureTranslator2 -> wrapPureTranslator
2022-04-23 14:50:17 +02:00
DavHau
3b81f4e35b
refactor: translatorsV2 -> translators
2022-04-23 14:48:00 +02:00
DavHau
e8410dc566
fix pure translator template
2022-04-23 13:19:13 +02:00
DavHau
2480581482
change config default for packagesDir: packages -> dream2nix-packages
2022-04-22 22:53:02 +02:00
DavHau
74e8474a21
fix: exclude packagesDir and overridesDirs from invalidationHash
2022-04-22 22:45:35 +02:00
DavHau
890183d2c6
remove more legacy translator code
2022-04-20 17:06:58 +02:00
DavHau
0bd073908f
fix typo: aggregates -> aggregated
2022-04-20 16:59:12 +02:00
DavHau
34f1ff3e23
remove deprecated interfaces:
...
- makeOutputs
- translators.translators
2022-04-20 16:58:38 +02:00
DavHau
f1f1633804
remove deprecated tests in ./tests/pure
2022-04-20 16:41:37 +02:00
DavHau
feb7eabd0c
fixup cargo-lock translator
2022-04-17 14:42:48 +02:00
DavHau
2331a0aa02
fix value is a string
error when overriding sources
2022-04-17 14:42:37 +02:00
Yusuf Bera Ertan
2eb9461868
feat: port cargo lock translator to simpleTranslate2
2022-04-16 14:03:33 +03:00
DavHau
25d8bf5125
start moving crago-lock to translator v2 interface
2022-04-15 01:16:32 +02:00
DavHau
1ac93e4d93
allow executing single test via nix run .#tests-examples {package}
2022-04-15 01:15:37 +02:00
DavHau
e9b336953a
Merge branch 'main' into cargo-lock-subpackages
2022-04-15 00:34:25 +02:00
DavHau
8eebb32a52
update translator templates
2022-04-14 23:58:40 +02:00
Yusuf Bera Ertan
07c7d7d2dc
fix: make cargo-lock translator handle discovered project path deps seperately, handle store path source paths correctly
2022-04-12 06:29:49 +03:00
Yusuf Bera Ertan
1cca528ec6
fix(translator/cargo-lock): filter out root member (.) since we already parse this
2022-04-10 17:53:25 +03:00
Yusuf Bera Ertan
aa6099ecf2
feat(translator/cargo-lock): use discoveredProjects to find dependencies that are outside of a packages source
2022-04-10 17:22:58 +03:00
DavHau
91c66f5946
fix template
2022-04-08 12:02:41 +01:00
DavHau
f59346d1d6
add flake template
2022-04-08 11:59:24 +01:00
DavHau
84135ea205
update alejandra
2022-04-04 17:08:26 +01:00
DavHau
e939aa6810
fix: rust source path self reference
...
fixes #107
2022-04-04 16:55:08 +01:00
DavHau
be7f4f488d
rust: fallback to relPath if name not in Cargo.toml
2022-04-04 16:34:23 +01:00
DavHau
ecf409e502
ignore peerDependencies for top level package
...
fixes #105
2022-04-04 15:40:47 +01:00
DavHau
0f0fa91056
fix missing defaultApp
2022-04-04 12:47:02 +01:00
DavHau
0bcb6ec0f5
remove .#resolve
...
(in favor of .#package-name.resolve)
fixes #106
2022-04-04 12:36:45 +01:00