Commit Graph

631 Commits

Author SHA1 Message Date
DavHau
db19f7c07a add path-example for nodejs 2022-05-17 12:57:57 +02:00
DavHau
1e016126ef fix path sources not supplied with root[Name|Version] 2022-05-17 12:57:03 +02:00
DavHau
2d630b00f2 fix testing examples 2022-05-17 12:17:23 +02:00
DavHau
8574ecf381 nodejs: account for empty dependencies 2022-05-17 12:16:49 +02:00
Yusuf Bera Ertan
34a272a39c
fix(fetcher): make sourceRoot be used after rootName and rootVersion are tried for path sources 2022-05-15 23:11:37 +03:00
DavHau
9003aed816 readme: ad section funding 2022-05-15 19:04:07 +02:00
Tomek Mańko
15b822a040 Resolve path sources relative to the source root 2022-05-08 21:29:01 +02:00
DavHau
e5d0e9cdb0 fix comment python discoverer 2022-05-06 15:47:47 +02:00
dusk
aaa946287e
refactor(translator/cargo-lock): dont add name and version to crates-io source (#142) 2022-05-05 22:53:46 +03:00
dusk
d9fbf0d0a8
tests: add cargo-lock translator test with git dependencies (#140) 2022-05-05 00:58:26 +03:00
DavHau
9733fd26da
Merge pull request #139 from yusdacra/fix/git-refs
fix(fetcher/git): handle ref checking correctly
2022-05-04 21:47:51 +02:00
Yusuf Bera Ertan
3c5bf628ef
fix(fetcher/git): handle ref checking correctly 2022-05-04 22:39:54 +03:00
DavHau
bf5b5413f3
Merge pull request #138 from yusdacra/fix/parsed-type
fix(translator/cargo-lock): dont assume parsed.type exists, use `or null`
2022-05-04 20:04:28 +02:00
Yusuf Bera Ertan
1b79f68d98
fix(translator/cargo-lock): dont assume parsed.type exists, use null if it doesnt 2022-05-04 20:38:11 +03:00
DavHau
6672d1f3d9 update readme: wording, glossary
fixes #132
2022-05-03 22:33:08 +02:00
dusk
8966d32215
feat: allow ref to be specified in git source (#137)
* feat: allow ref to be specified in git source

* feat(translator/cargo-lock): add ref to git source if one is provided

* refactor(fetcher/git): also check for null for ref

Co-authored-by: DavHau <hsngrmpf+github@gmail.com>

* refactor(fetcher/git): move ref check for rev to a let in to avoid recomputing it

* refactor(fetcher/git): do null check for inp.ref in refAndRev

Co-authored-by: DavHau <hsngrmpf+github@gmail.com>
2022-05-03 21:23:50 +02:00
DavHau
8b90a86082
Merge pull request #136 from yusdacra/main
fix(translator/cargo-lock): fix some bugs regarding source entry parsing and getting checksums
2022-05-03 20:16:45 +02:00
Yusuf Bera Ertan
c807bf85af
fix(translator/cargo-lock): try to get crates-io checksum from the metadata table of a cargo-lock, if it exists 2022-05-03 06:19:53 +03:00
Yusuf Bera Ertan
5a4076a881
fix(translator/cargo-lock): attempt to fix dep entry parsing bug 2022-05-03 05:57:00 +03:00
Yusuf Bera Ertan
a2cbbb576c
feat: expose makeOutputsForDreamLock 2022-05-02 13:05:55 +03:00
dusk
97d32e314e
docs: fix sourceOverrides usage in readme example (#134) 2022-04-29 11:17:34 +02:00
Gérald Lelong
8df4f0beee
don't mv ../.cargo/config if it doesn't exist (#133) 2022-04-28 19:33:27 +02:00
dusk
1c8faf4882
Another round of rust fixes (#130)
* fix(builder/build-rust-package): don't hardcode cargo config path

* refactor(rust): vendor every dependency in cargo lock to fix some build issues, clarify some code

* fix(builder/build-rust-package): cargoCheckFlags -> cargoTestFlags
2022-04-27 11:57:41 +02:00
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