DavHau
f1f1633804
remove deprecated tests in ./tests/pure
2022-04-20 16:41:37 +02:00
DavHau
91c66f5946
fix template
2022-04-08 12:02:41 +01:00
DavHau
f59346d1d6
add flake template
2022-04-08 11:59:24 +01:00
DavHau
0f0fa91056
fix missing defaultApp
2022-04-04 12:47:02 +01:00
DavHau
f2d40e70cb
remove tests-impure
2022-03-28 23:34:56 +07:00
DavHau
48439d7e8b
rename: lib2 -> lib
2022-03-27 22:32:08 +07:00
DavHau
f7c034d4ee
add ./examples with flake examples
2022-03-27 22:16:45 +07:00
Max
656a5d6af2
Add aarch64-linux support
...
I'd like to use dream2nix on an ARM64 machine. Passes `nix flake check`.
2022-03-13 02:06:23 +01:00
DavHau
e0c433078b
add pre-commit shellHook
2022-03-07 18:25:38 +07:00
DavHau
6b015ff9f5
fixup formatting issues
2022-03-07 18:06:28 +07:00
DavHau
ae47597f4a
formatting hook and include test into .#tests-all
2022-03-07 18:06:28 +07:00
DavHau
076a1c9aff
treewide: format with alejandra 1.0.0
...
closes #84
2022-03-07 18:06:18 +07:00
DavHau
68478d0772
formatting: add flake apps + prepare hooks
2022-03-07 13:57:22 +07:00
zimbatm
46dd1ab167
use one nixpkgs instance
...
Push the nix configuration into the CLI so we don't need the overlay,
and so we don't need to create another instance of nixpkgs.
This also means that the python CLI can be executed directly as long as
the user has a recent-enough version of nix and make iterations a bit
faster.
For more details, see
https://zimbatm.com/notes/1000-instances-of-nixpkgs
2022-03-04 13:26:16 +01:00
DavHau
31ff31b901
fix: add some missing crane paths to externalPaths
2022-02-28 12:12:15 +07:00
DavHau
958bdd6699
Squashed commit of the following:
...
commit c580c24b82
Author: Yusuf Bera Ertan <y.bera003.06@protonmail.com>
Date: Sun Feb 27 21:51:58 2022 +0300
feat: expose builders in lib.init
commit 2fe01e1715
Author: Yusuf Bera Ertan <y.bera003.06@protonmail.com>
Date: Sun Feb 27 18:37:39 2022 +0300
fix(rust/crane): make sure cargo only builds the package we want
...(more)
2022-02-28 11:25:39 +07:00
DavHau
d76407b4cd
expose project discovery via lib2
2022-02-27 17:26:13 +07:00
DavHau
b78958849d
remove dependency nix-parsec
2022-02-23 19:12:33 +07:00
DavHau
7e78d8b37b
move some translator funcs to system independent lib
2022-02-23 16:51:47 +07:00
DavHau
b4fef5baf0
make some translator functions system independent
...
- introduce `dlib` - system independent lib
- refactor all translators, to make functions extraArgs and conpatiblePaths system independent
2022-02-23 14:59:42 +07:00
DavHau
24c42d3eb3
fix flake.nix lib initialization
2022-02-22 15:00:32 +07:00
Justin Restivo
8a574bd152
Add darwin to architecture list
2022-01-29 16:45:36 -05:00
DavHau
1358e1a303
always use internal overrides
2021-12-08 23:18:21 +07:00
DavHau
d3a279875e
feature: support multiple packages per source
2021-12-02 14:15:40 +07:00
DavHau
9d2d385273
test nix funcs with pytest via nix_ffi.py
2021-11-20 11:34:04 +07:00
DavHau
b4b7435ca3
Merge branch 'dev' into go
2021-11-17 11:28: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
Akshat Agarwal
ff9e30b242
add go support using gomod2nix
...
Co-authored-by: DavHau <hsngrmpf+github@gmail.com>
2021-11-16 23:28:05 +05:30
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
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
b23e9ef8f3
make output packages
flakes compatible
...
- closes #39
2021-11-01 00:14:36 +07:00
DavHau
0d1e36f770
init: dream2nix overrides
2021-10-31 10:38:51 +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
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
9ac7e462f3
improve granular nodejs builder
2021-10-22 23:10:14 +07:00
DavHau
6a4a1da0f1
refactor dream.lock sources structure:
...
- now accessed like sources.{name}.{version}
2021-10-22 14:29:38 +07:00
DavHau
850dc71568
fix python translator+fetcher+builder
2021-10-20 16:39:11 +07:00
DavHau
d06519bce0
fix parsing CRLF formatted files
2021-10-07 16:25:28 +07:00
DavHau
40d3a3e46b
different improvements:
...
- templating for default.nix
- templates for translators
- fixup nodejs translators
2021-10-07 12:07:28 +07:00
DavHau
e99e002920
Squashed commit of add_yarn_lock:
...
commit 3415d7f6f834dc3e52cf6898ec02b58ac7df4089
Merge: fca3973
daa71d3
Author: DavHau <hsngrmpf+github@gmail.com>
Date: Wed Oct 6 10:33:52 2021 +0700
Merge remote-tracking branch 'happysalada/add_yarn_lock' into dev
commit daa71d3e53
Author: happysalada <raphael@megzari.com>
Date: Wed Oct 6 00:01:26 2021 +0900
yarn.lock: initial translator
commit 8f4632ab5e
Author: happysalada <raphael@megzari.com>
Date: Tue Oct 5 20:52:00 2021 +0900
translators: add yarn.lock
2021-10-07 11:52:51 +07:00
DavHau
7f19e0662f
finalize new CLI
2021-10-06 10:16:00 +07:00
DavHau
aa6c0c7027
introduce fetcher modules
2021-10-06 10:16:00 +07:00
happysalada
87ad5ae4a5
add darwin support
2021-10-05 16:36:57 +09:00
DavHau
f3444c90f7
add app 'contribute' to initialize templates
2021-09-24 14:19:48 +01:00
DavHau
e4b9717fa2
fix node2nix builder
2021-09-22 00:30:56 +01:00
DavHau
f685e44d59
Add builder for nodejs
...
- python builder support application
- add version to dream.lock
- allowBuiltinsFetchers config option
- node2nix builder
- handle github sources without hash
2021-09-20 20:52:31 +01:00