Commit Graph

816 Commits

Author SHA1 Message Date
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
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