Commit Graph

320 Commits

Author SHA1 Message Date
DavHau
f30b6759f4
Merge pull request #40 from DavHau/dev
Add tests; Improve: overrides, nodejs builder, output schema
2021-11-01 00:22:08 +07:00
DavHau
b23e9ef8f3 make output packages flakes compatible
- closes #39
2021-11-01 00:14:36 +07:00
DavHau
cd6095406b split nodejs builder into different phases 2021-10-31 21:43:45 +07:00
DavHau
0d1e36f770 init: dream2nix overrides 2021-10-31 10:38:51 +07:00
DavHau
120b2d0ee0 improve overrides:
- make overrides referenceable
  - automatically detect override functions for attributes
2021-10-30 19:23:55 +07:00
DavHau
d20f318b58 rename several things
- rename fetcher 'fetchurl' -> 'http'
  - rename specialArgs -> extraArgs
  - rename order_dict -> sort_dict
2021-10-29 21:18:58 +07:00
DavHau
52740e8f96 Tests + refactor externls
- add flake checks
  - refactor handling of external sources
  - rename 'dependenciesRemoved' -> 'cyclicDependencies'
2021-10-29 21:18:58 +07:00
DavHau
47287126d8
Merge pull request #38 from DavHau/dev
flakes output schema + nodejs builder improvements

There are now 2 different entry points for dream2nix.
  1. The ./default.nix requires pkgs to be passed and produces outputs only for that specific system
  2. The ./lib.nix is a wrapper for the previous, allowing to pass a list of systems or pkgs, and will then produce outputs for several systems. The output schema is the same as with flakes.
2021-10-29 17:03:27 +07:00
DavHau
c4b110bc38 output schema flakes-style 2021-10-29 16:59:56 +07:00
DavHau
607be5f99c nodejs: improve builder
- stop using npm install
  - run postinstall scripts
  - make binaries of direct dependencies available during build
2021-10-29 16:21:42 +07:00
DavHau
9fc3c648ed
Merge pull request #37 from danth/emtpy
fix typo emtpy → empty
2021-10-29 14:51:53 +07:00
Daniel Thwaites
84a2a606cc
fix typo emtpy → empty 2021-10-29 07:37:21 +01:00
DavHau
ca8ccc96b5
Merge pull request #36 from DavHau/dev
improve overrides + nodejs builder
2021-10-28 14:27:50 +07:00
DavHau
c5881e2db1 pass nodeDeps as path 2021-10-28 14:23:53 +07:00
DavHau
9d8292878a stop using string substitutions in installPhase 2021-10-27 14:42:57 +07:00
DavHau
9e2b46edfd improve nodejs builder + bug fixes
- add option `dontNpmInstall`
  - handle package incompatible to platform
  - replace version in package.json on mismatch
  - fix generated versions for github revisions
2021-10-27 13:24:36 +07:00
DavHau
1219a10592 overrides: allow passing functions for attributes 2021-10-27 13:24:36 +07:00
DavHau
a0466031c0
Merge pull request #35 from DavHau/dev
Minor fixes and improvements
2021-10-26 20:52:41 +07:00
DavHau
d6dc1560cc fix update command 2021-10-26 20:06:43 +07:00
DavHau
99a87ea7cd add getCyclicDependencies to dream-lock interface 2021-10-26 19:46:55 +07:00
DavHau
1cbc64fe73 nodejs: never execute scripts on installation 2021-10-26 19:29:19 +07:00
DavHau
c4947f7832
Merge pull request #34 from DavHau/dev
improve nodejs builders and translators
2021-10-26 15:26:48 +07:00
DavHau
f49f05e943 improve nodejs builders and translators
- add buildPackageWithOtherBuilder helper
  - do not delete cyclic dependencies by default
  - always delete devDependencies in package.json
  - fix handling of source type `path`
  - yarn-lock: handle missing name
  - update utils.dreamLock interface
  - add `createMissingSource` capability to simpleTranslator
2021-10-26 15:25:35 +07:00
DavHau
0e43d2dc7b
Merge pull request #33 from DavHau/dev
new builder interface + builder improvements
2021-10-25 15:38:14 +07:00
DavHau
57ca41c059 update flake.lock 2021-10-23 18:50:36 +07:00
DavHau
70cf6c2723 new builder interface:
- dream lock interface via utils.readDreamLock
  - improve granular builder for nodejs
  - support fetching urls with sha1 hash
  - add jsonschema for source type path
2021-10-23 18:50:36 +07:00
DavHau
2db704be87
Merge pull request #32 from DavHau/dev
conditional overrides + nodejs builder improvements
2021-10-22 23:15:50 +07:00
DavHau
9ac7e462f3 improve granular nodejs builder 2021-10-22 23:10:14 +07:00
DavHau
b79343b398 finalize conditional overrides 2021-10-22 23:05:20 +07:00
DavHau
1be0df8394
Merge pull request #31 from DavHau/dev
dream.lock schema changes and improvmenets
2021-10-22 16:34:42 +07:00
DavHau
8a5108a602 fix combined hashing mode 2021-10-22 16:29:29 +07:00
DavHau
72c435b8a8 yarn-lock: use git fetcher instead of github 2021-10-22 15:55:45 +07:00
DavHau
38f1725a24 fix dream-lock-schema.json 2021-10-22 15:52:20 +07:00
DavHau
68f38ac988 remove option allowBuiltinFetchers 2021-10-22 15:52:06 +07:00
DavHau
055102e698 use utils.writePureShellScript for all translators 2021-10-22 14:56:56 +07:00
DavHau
6a4a1da0f1 refactor dream.lock sources structure:
- now accessed like sources.{name}.{version}
2021-10-22 14:29:38 +07:00
DavHau
8a96fb0f07
Merge pull request #30 from DavHau/dev
add: support for git URLs in package-lock translator
2021-10-21 13:59:19 +07:00
DavHau
3cbac60c4d add: support git URLs in package-lock parser 2021-10-21 13:45:49 +07:00
DavHau
39b3851ceb fix: extractSource 2021-10-20 21:36:22 +07:00
DavHau
42287603ca
Merge pull request #29 from DavHau/dev
fix python translator+fetcher+builder
2021-10-20 16:41:06 +07:00
DavHau
850dc71568 fix python translator+fetcher+builder 2021-10-20 16:39:11 +07:00
DavHau
7f04c9d597
Merge pull request #28 from DavHau/dev
add: `update` cli app for automatic package update
2021-10-19 00:35:06 +07:00
DavHau
bf4b807e34 add: update cli app for automatic package update 2021-10-19 00:23:48 +07:00
DavHau
a6f52f96a9
Merge pull request #27 from DavHau/dev
Simplified interface for pure translators
2021-10-18 00:21:43 +07:00
DavHau
5083a88e4c rename: npmlock2nix -> package-lock 2021-10-18 00:16:13 +07:00
DavHau
99cee262e5 refactor npmlock2nix to use simpleTranslate 2021-10-18 00:15:54 +07:00
DavHau
0867db4b8a move translator yarn-lock-2 -> yarn-lock 2021-10-17 23:08:08 +07:00
DavHau
35a806264f remove old yarn-lock parser 2021-10-17 23:07:18 +07:00
DavHau
353cc807be refine simpleTranslate 2021-10-17 23:03:55 +07:00
DavHau
9677c12e9e add: simpleTranslate helper function for translators 2021-10-17 15:48:32 +07:00