DavHau
bccf3b25c7
multiple override dirs, nodejs improvements
...
- nodejs builder: symlink sub dependencies
- allow multiple directories with overrides
- rename app: cli -> dream2nix
2021-11-07 15:18:28 +07:00
DavHau
62317e6501
fix: inject
2021-11-07 15:18:28 +07:00
DavHau
74a2a2351e
ask to create default.nix by default
2021-11-07 15:18:14 +07:00
DavHau
f1ab3e1b84
Merge pull request #44 from DavHau/dev
...
Refactor/Improve dream-lock structure
2021-11-04 15:49:09 +07:00
DavHau
a936cf44a5
rename dream.lock -> dream-lock.json
2021-11-04 15:48:40 +07:00
DavHau
a1d0ed99a8
restructure / rename dream-lock attributes
2021-11-04 15:36:12 +07:00
DavHau
c2e9d3adf4
yarn: remove noOptional + improve UI
2021-11-04 15:02:44 +07:00
DavHau
12d837e086
Merge pull request #42 from DavHau/dev
...
Yarn translator and nodejs builder improvements
2021-11-03 10:54:22 +07:00
DavHau
b1cb420434
fixes for yarn translator and node builder
2021-11-03 10:46:02 +07:00
DavHau
aa81800846
fixes and improvements for nodejs
...
- add system specific dream2nix to flake outputs
- add more overrides
- overrides allow regex as key
2021-11-02 15:13:34 +07:00
DavHau
f1662dabe5
cleanup package.json translator
2021-11-01 15:16:39 +07:00
DavHau
ddc1fdde6d
Merge pull request #41 from DavHau/dev
...
Detect cycles in nix, package.json translator, npm fetcher
2021-11-01 14:43:50 +07:00
DavHau
4ef9af0f73
add translator.package.json
...
- update default.nix template
- add npm to dream lock schema
- handle empty depedency graph in readDreamLock
2021-11-01 14:42:02 +07:00
DavHau
5a00d557b9
add npm fetcher
2021-11-01 13:48:23 +07:00
DavHau
03ef2e4c7a
detect cycles in pure nix
2021-11-01 13:30:37 +07:00
DavHau
2fd7782af4
nodejs: enable dev deps by default
2021-11-01 13:30:37 +07:00
DavHau
6850db9cc4
cli: rename --extra-arg
-> --arg
2021-11-01 13:30:37 +07:00
DavHau
c120dbe328
allow passing translatorArgs to riseAndShine
2021-11-01 13:30:31 +07:00
DavHau
8189d77a7e
fix unpackging tgz with broken permissions
2021-11-01 10:03:10 +07:00
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