Commit Graph

62 Commits

Author SHA1 Message Date
Yusuf Bera Ertan
cc3020a32f
refactor: change projects -> inputs, make option description more explanatory 2022-10-31 22:26:03 +03:00
Yusuf Bera Ertan
5fd403b090
feat: define projects via attrset, rename flakePartsModule to flakeModule 2022-10-29 03:57:38 +03:00
Yusuf Bera Ertan
f15d2efa0b
feat: add outputs attributes for accessing raw dream2nix outputs, showcase overriding package in example 2022-10-29 02:40:57 +03:00
Yusuf Bera Ertan
773d8bac43
feat: add a flake-parts module 2022-10-29 00:51:52 +03:00
DavHau
a20bb9ced1 add example for devShell via dlib.mergeFlakes 2022-10-28 22:36:14 +02:00
Bill Ewanick
38ce98e281 Add example of overriding devShells to prettier flake 2022-10-28 21:39:47 +02:00
Brian Leung
68c23526e5
translators/cabal-freeze: add example flake 2022-10-17 04:29:06 -07:00
DavHau
26e4adffcc Merge remote-tracking branch 'origin/main' into indexers 2022-10-15 00:21:18 +02:00
DavHau
bd9173e14a fix: example for indexers 2022-10-14 00:40:36 +02:00
Yusuf Bera Ertan
0bac3a3476
tests: attemp to fix _d2n-extended 2022-10-06 22:48:12 +03:00
Yusuf Bera Ertan
14a56a8d43
tests: fix _d2n-extended-new-subsystem 2022-10-06 22:24:07 +03:00
Yusuf Bera Ertan
55db7931ce
tests: fix unit tests, fix extended examples 2022-10-06 20:53:59 +03:00
Yusuf Bera Ertan
0d56a0f089
tests: fix _d2n-extended test again 2022-10-04 18:11:10 +03:00
Yusuf Bera Ertan
80ec66e77a
tests: fix _d2n-extended test 2022-10-04 16:50:42 +03:00
Yusuf Bera Ertan
b4a93ebbae
feat: make fetchers use modules 2022-10-04 15:46:53 +03:00
DavHau
a5bf4443bb
Merge pull request #317 from leungbk/racket-impure
Racket: add impure translator and simple builder
2022-10-04 12:42:17 +02:00
Yusuf Bera Ertan
fad33143f9
fix: use modules from makeFlakeOutputs, pass dream2nixConfig to modules specialArgs 2022-10-03 15:18:27 +03:00
Yusuf Bera Ertan
74128bba5d
fix: remove extra usage from _d2n-extended-new-subsystem 2022-10-03 15:18:27 +03:00
Yusuf Bera Ertan
6871e9e560
fix: fix extended examples 2022-10-03 15:18:27 +03:00
Brian Leung
c17d995e8d
Add impure Racket translator 2022-10-01 23:33:23 -07:00
Yusuf Bera Ertan
15b8621648
tests: fix _d2n-extended test 2022-09-25 22:54:05 +03:00
Yusuf Bera Ertan
7432b27e13
tests: fix new-subsystem test 2022-09-25 21:01:43 +03:00
DavHau
152d921a30 Merge branch 'bezmuth/main' 2022-09-20 14:57:27 +02:00
DavHau
584e5a5fa1 fix: haskell: stack-lock: extract compiler from snapshot 2022-09-20 14:57:10 +02:00
Yusuf Bera Ertan
8d9756d47f
fix: change examples d2n input urls to github repo 2022-09-15 14:59:19 +03:00
Yusuf Bera Ertan
2ec675e394
feat: add license extraction for nodejs and rust 2022-09-13 21:02:43 +03:00
Martin Toman
f4ed1c9ec1 php: disable checks for composer example 2022-09-12 16:42:11 -07:00
DavHau
e77c129ad6 php: add example flake for building composer 2022-09-12 12:27:31 +02:00
DavHau
3caf3a8a67 fix: crates-io-simple indexer 2022-08-31 12:10:33 +02:00
DavHau
a6a963586c fix: crates-io indexer and makeOutputsForIndexers
- simplify API for makeFlakeOutputsForIndexers (see updated example)
- remove arguments `overrideOutputs` and `indexNames`
- add arguments `indexes`
- add app `ci-job-...` which is a script meant to be executed as a cron action, pushing updates to a separate `data` branch
2022-08-31 12:10:33 +02:00
DavHau
a09c59a7f7 feat: indexers: add tested example for indexers 2022-08-31 12:10:33 +02:00
bezmuth
e4ff799d3e Change compiler version formatting. 2022-08-25 19:38:56 +01:00
DavHau
35921b71d5 fix: debian-binary: remove dep-spec file and discover function
- dep-spec is not needed anymore since project can be specified without a source code
- therefore there is nothing to discover anymore as well
2022-08-24 12:26:57 +02:00
DavHau
c492204d37 refactor: debian translator without source 2022-08-20 18:38:01 +02:00
a-kenji
17dd96f40e fixup! remove flake.lock from examples 2022-08-20 18:38:01 +02:00
a-kenji
1fc7672423 init: impure debian translator
Initialize an impure translator from debian binaries.
2022-08-20 18:38:01 +02:00
bezmuth
f5c39bfc18 Remove hardcoded ghc version. 2022-08-18 19:55:28 +01:00
DavHau
e654ffaa10 feat: module system improvements
- add documentation to the subsystem-loading interface
- expose evaled modules publicly via `framework`
- add option config.modules to allow users to include their own modules
- update examples for extending dream2nix
2022-08-15 15:34:24 +02:00
DavHau
7564d81e50 rafactor: rename rust example 2022-07-31 18:00:52 +02:00
DavHau
cb394b8d7e refactor: rename nodejs workspace example2 2022-07-31 17:59:56 +02:00
DavHau
59f305953f refactor: remove confusing setting from haskell example 2022-07-22 17:31:16 +02:00
DavHau
e8fe3f803f rename examples under ./examples
Apply naming scheme {subsystem}_{test-name}
2022-07-22 16:02:21 +02:00
DavHau
7cd64d386d python improvements, docs and guide.
- add warning to readme and docs stating that dream2nix is unstable software
- refactor structure of docs: remove title .md pages, instead add titles via (# title) to SUMMARY
- change order of doc topics. move `guides` and `subsystems` to the front
- add docs for python subsystem
- add getting started guide for python
- extend ./examples/python to make use of translator options
- add new function to dlib `systemsFromFile` that allows to load the `supportedSystems` from a file. This alows changing the supported systems without touching the flake.
- move pip translator args to extra file `args.nix` to allow embedding in docs
- fix pip translator
- add a .gitignore to the basic flake template
- use new systemsFromFile function in basic flake template
2022-07-16 15:03:37 +02:00
DavHau
b83394e5f2
haskell: init cabal-plan translator (#192)
* haskell: init cabal-plan translator

* simplify cabal2json: take from new nixpkgs

* delete accidental copy of file

* fix example haskell-plan-json

* rename haskell examples
2022-07-12 21:45:29 +02:00
DavHau
10fecabe3a
add devShell outputs for nodejs ad python (#186)
* add devShell outputs for nodejs ad python

* nodejs devShell improvements

- do not export NODE_PATH
- create node_modules directory
- add .bin directories of direct dependencies to PATH

* nodejs: revise devShell logic

- fix namespaced modules symlinking to ./node_modules
- add all transitive exectables to ./node_modules/.bin
- add ./node_modules/.bin to PATH

* set nodejs version in eslint example

* nodejs: improve error message on failed node_modules symlink in devShell

* readme: add nodejs version setting to example
2022-07-12 18:54:35 +02:00
DavHau
3aa7a1365d python: apply overrides and fix override system 2022-06-22 13:16:09 +02:00
DavHau
78b14674cd fixup/improve python translator and builder
- translator: ensure setup requirements from pyproject.toml are respected
- builder: ensure setup requirements are installed first before the package is built
- simplify the python translator
- dont depend on mach-nix for dependency extraction
- use only pip download to extract dependencies
- allow impure pip translator to cache downloads
- fix dream-lock.json. location was missing
2022-06-22 13:16:09 +02:00
Yusuf Bera Ertan
5f20f98aa2
feat: implement overrideRustToolchain for crane and build-rust-package (#175) 2022-06-18 18:24:05 +03:00
DavHau
c2a8067aad delete flake.lock of haskell example 2022-06-15 13:26:21 +02:00
DavHau
30401cbc9d fix example for haskell 2022-06-05 16:52:19 +02:00