DavHau
f634038bbf
WIP - adapt code to dream lock changes
2022-02-10 11:43:14 +07:00
DavHau
28c29947cd
dream-lock structure changes
...
remove fields:
- translator
- translatedBy
- mainPackageName
- mainPackageVersion
add fields:
- defaultPackage
- packages
2022-02-10 11:43:14 +07:00
Yusuf Bera Ertan
405e63e941
feat: throw an error in getSourceSpec if the requested dep doesnt exist
2022-01-16 13:00:53 +03:00
Yusuf Bera Ertan
c9ea0f7c13
feat: add getSourceSpec
2022-01-16 12:56:54 +03:00
DavHau
e69cb52ab0
nodejs builder+translator improvements
2021-12-22 17:31:37 +01:00
DavHau
8934508e66
refactor simpleTranslate
2021-12-11 09:13:26 +07:00
DavHau
87b6959039
fix updating packages + add test
2021-12-09 15:47:08 +07:00
DavHau
ed08f9e24c
fix fetchers: npm, pypi
2021-12-09 12:55:32 +07:00
DavHau
d3a279875e
feature: support multiple packages per source
2021-12-02 14:15:40 +07:00
DavHau
133b2d0093
fix shortcuts + pname, version handling
2021-11-30 12:36:49 +07:00
Yusuf Bera Ertan
0903f5ea43
feat: pass version and pname to fetchers ( #60 )
...
* feat: pass version and pname to fetchers, adjust schema for new behaviour
* fix: name -> pname
* refactor: move override warning to simpleTranslate, flatten dependencyInfo
2021-11-30 12:20:27 +07:00
Yusuf Bera Ertan
bfcd5b6f35
feat: cargo lock translator, rust builder ( #59 )
2021-11-29 18:34:53 +07:00
DavHau
b8dc44d0f2
feature: translate subdir of source via ?dir=foo
2021-11-24 08:50:05 +07:00
DavHau
9d2d385273
test nix funcs with pytest via nix_ffi.py
2021-11-20 11:34:04 +07:00
DavHau
553d29724f
bugfixes: fixes #54 , fixes #55
...
- add package vie http URL
- create default.nix for debugging
- package-lock parse `npm:` reference
2021-11-18 11:33:24 +07:00
DavHau
4cf80a1460
add test for aggregated fetching: github source
2021-11-17 17:40:09 +07:00
DavHau
e99487cee9
rename sourcesCombinedHash -> sourcesAggregatedHash
2021-11-17 17:12:02 +07:00
DavHau
97e2fef121
fix & improve aggregated source fetching
2021-11-17 17:09:25 +07:00
DavHau
87157ecc8b
fix NIX_PATH impurity in writePureShellScript
2021-11-17 12:18:22 +07:00
DavHau
3b5b9096e1
hercules ci + improvements
...
- yarn-lock: add nodejs version argument
- add impure tests
- add ci.nix for hercules
2021-11-17 11:23:31 +07:00
DavHau
079ec025dc
nodejs builder: fix executing $buildScript
2021-11-15 18:10:22 +07:00
DavHau
f1e34e0e89
builder API; move override logic into produceDerivation
...
This should simplify writing builders
2021-11-13 17:41:48 +07:00
DavHau
3ec6baf2c4
support parsing github:...
URLs
2021-11-12 21:52:32 +07:00
DavHau
9ff7a0ab58
CLI improvements
...
- rename command package -> add
- improve handling of dream2nix config
- improve purity of cli execution
- automatically find git repo root
- improve package update cli
2021-11-07 15:18:28 +07:00
DavHau
60d89f776f
improve flake interfaces and apps
...
- improve exposing apps for other flakes
- configure overridesDirs via config
2021-11-07 15:18:28 +07:00
DavHau
39db511926
improve override system
...
- add utils.satisfiesSemver (from poetry2nix)
- nix-parsec add LICENSE from https://github.com/nprindle/nix-parsec/issues/5
- remove builtin overrides (moved to dreampkgs)
2021-11-07 15:18:28 +07:00
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
a1d0ed99a8
restructure / rename dream-lock attributes
2021-11-04 15:36:12 +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
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
03ef2e4c7a
detect cycles in pure nix
2021-11-01 13:30:37 +07:00
DavHau
b23e9ef8f3
make output packages
flakes compatible
...
- closes #39
2021-11-01 00:14:36 +07:00
DavHau
120b2d0ee0
improve overrides:
...
- make overrides referenceable
- automatically detect override functions for attributes
2021-10-30 19:23:55 +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
c4b110bc38
output schema flakes-style
2021-10-29 16:59:56 +07:00
DavHau
1219a10592
overrides: allow passing functions for attributes
2021-10-27 13:24:36 +07:00
DavHau
99a87ea7cd
add getCyclicDependencies to dream-lock interface
2021-10-26 19:46:55 +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
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
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
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
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
850dc71568
fix python translator+fetcher+builder
2021-10-20 16:39:11 +07:00
DavHau
bf4b807e34
add: update
cli app for automatic package update
2021-10-19 00:23:48 +07:00
DavHau
99cee262e5
refactor npmlock2nix to use simpleTranslate
2021-10-18 00:15:54 +07:00
DavHau
353cc807be
refine simpleTranslate
2021-10-17 23:03:55 +07:00