Commit Graph

570 Commits

Author SHA1 Message Date
DavHau
bea483c936 add overrides for python 2022-07-03 12:17:40 +02:00
DavHau
6f7199e060 python: implement extraSetupDeps, remove extraRequirements 2022-07-03 12:16:12 +02:00
DavHau
da52cf49f4 python: install with --no-build-isolation 2022-07-03 12:15:15 +02:00
DavHau
1477c6d9d8 fix: pass extraArgs defaults to impure translators 2022-07-03 12:14:33 +02:00
DavHau
1a30e4062a rname: builtins.path -> l.path 2022-07-02 15:55:14 +02:00
DavHau
4e75e665ec haskell: add notes on haskell.nix 2022-06-23 11:17:13 +02:00
Yusuf Bera Ertan
52f7dd7b51
refactor: move docs cli nix expression 2022-06-22 21:13:27 +03:00
DavHau
788ff08638
Merge pull request #183 from nix-community/python
fixup/improve python translator and builder
2022-06-22 13:43:18 +02:00
DavHau
30722d2fe0 makeOutputs: remove impure projects warning
- instead generate fake derivations which fail with hint on evalation
2022-06-22 13:16:09 +02:00
DavHau
3aa7a1365d python: apply overrides and fix override system 2022-06-22 13:16:09 +02:00
DavHau
bc029af0ae pip translator: fix bug when parsing .whl filename 2022-06-22 13:16:09 +02:00
DavHau
162e29d280 python discoverer: top level package name main 2022-06-22 13:16:09 +02:00
DavHau
33b53e87df improve pip translator
- keep pname from discovery phase
- allow passing argument extraRequirements
2022-06-22 13:16:09 +02:00
DavHau
0277813f56 resolveImpure: make this a package instead of an app
- the reason for this change is that the flake app structure can only be used inside `apps`. Nix run will not execute it if it is inside any other attribute
2022-06-22 13:16:09 +02:00
DavHau
cd0009e3c8 python: depend on setuptools by default 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
1ba9555ecf
docs: add the haskell subsystem to subsystems doc 2022-06-21 19:16:05 +03:00
Yusuf Bera Ertan
2dcf2ab21e
docs: fix formatting in rest of the documentation 2022-06-21 19:15:29 +03:00
Yusuf Bera Ertan
d05c074a97
docs(readme): update docs cli app instructions, fix formatting 2022-06-21 19:11:02 +03:00
Yusuf Bera Ertan
f23add2b9c
fix(rust): apply overrideAttrs function properly to the final derivations 2022-06-21 18:44:45 +03:00
Yusuf Bera Ertan
16f11d2469
feat(rust/crane): passthru dependency derivation 2022-06-18 20:52:19 +03:00
Yusuf Bera Ertan
5f20f98aa2
feat: implement overrideRustToolchain for crane and build-rust-package (#175) 2022-06-18 18:24:05 +03:00
DavHau
ddf087ae91
Merge pull request #164 from nix-community/haskell
stack-lock translator & haskell builder
2022-06-18 15:05:59 +02:00
DavHau
2ce89fd481 haskell: clean up and add more comments 2022-06-16 18:49:37 +02:00
DavHau
7bbfd8e940 add documentation strings to stack-lock/utils.nix 2022-06-16 18:37:59 +02:00
DavHau
b45c224383 simpleTranslate2: improve unit tests. Be more lazy 2022-06-16 18:10:04 +02:00
Yusuf Bera Ertan
caa9c4b5ef
docs(cli): implement preview instead of just listing with fzf and bat 2022-06-16 00:01:55 +03:00
Yusuf Bera Ertan
709e4aa139
refactor: move docs script to seperate file 2022-06-15 23:44:18 +03:00
Andrea Ciceri
a65730e23d
Using cabal2json from nixpkgs instead that from a flake (#176)
* Nixpkgs input updated

Starting from now `cabal2json` is available in nixpkgs

* Using `cabal2json` from Nixpkgs

* Using more idiomatic `haskellLib` utils

* Formatting
2022-06-15 15:52:13 +02:00
DavHau
c2a8067aad delete flake.lock of haskell example 2022-06-15 13:26:21 +02:00
Yusuf Bera Ertan
7005441ceb
docs: setup mdbook book for documentation, add CLI app for docs (#173)
* docs: setup mdbook book for documentation

* ci: add github action for docs

* docs: add a cli command for showing docs in terminal

* Update docs/src/subsystems/rust.md

Co-authored-by: Ilan Joselevich <personal@ilanjoselevich.com>

* docs(rust): add example for crane overriding

* docs: add a further reading section to intro

* docs: fix a few links

* docs(readme): move documentation section up and fit some sections into 80 columns

Co-authored-by: Ilan Joselevich <personal@ilanjoselevich.com>
2022-06-13 22:27:05 +03:00
Yusuf Bera Ertan
4c3df83175
Revert "crane builder: apply overrides to -deps derivations"
This reverts commit f13621b7d3.
2022-06-11 17:56:54 +03:00
ners
45e7a3bd50
Fix undefined attribute error (#172) 2022-06-11 13:14:21 +02:00
DavHau
f13621b7d3 crane builder: apply overrides to -deps derivations
fixes #171
2022-06-10 01:50:02 +02:00
DavHau
49ec670653 nodejs builder: support sources starting with dash 2022-06-07 16:39:10 +02:00
DavHau
ee92270f06 fix illegal derivation name introduced by builtins.path 2022-06-07 16:18:37 +02:00
DavHau
ed8a64c463 make builders not depend on dlib and utils 2022-06-07 16:04:20 +02:00
DavHau
31cee1a17a remove node2nix builder 2022-06-05 23:47:27 +02:00
Yusuf Bera Ertan
90b353682e
chore: use numtide devshell instead of nixpkgs mkShell for dream2nix development shell (#169)
chore: use newer devShells output instead of devShell
2022-06-05 19:59:19 +02:00
Yusuf Bera Ertan
7e31c966fb
chore(deps): update crane 2022-06-05 19:02:01 +03:00
DavHau
30401cbc9d fix example for haskell 2022-06-05 16:52:19 +02:00
DavHau
8836a3f422 WIP stack-lock translator & haskell builder 2022-06-05 16:51:37 +02:00
DavHau
d6d94d88db simpleTranslate2: ignore irrelevant dependency objects 2022-06-05 16:51:25 +02:00
DavHau
e37041d443 remove extraDependencies from simpleTranslate2
- this field is unneccessary and `extraObjects` should be sufficient
2022-06-05 16:47:48 +02:00
Yusuf Bera Ertan
39eeaaa450
refactor: use new flake output schema for default package and devshells (#168) 2022-06-05 13:17:41 +02:00
Yusuf Bera Ertan
a46486a67e
fix(builder/crane): remove code that triggers IFD, remove dependency on full project source for deps only drv (#166)
* fix(builder/crane): remove code that triggers IFD, remove dependency on full project source for deps only drv

* fix(rust/builders): pass pkgs to utils.nix

* fix(builder/crane): break dependency on whole project source in dependency derivation

* refactor(rust/builders): change nix version to be more close to when reading toFile paths was made non-IFD

* docs(translator/cargo-lock): make the safety comment about unsafeDiscardStringContext usage more clear

* chore(deps): update crane

* fix: use builtins.path to make paths content addressed and named properly in a few places, fix cargo-lock path replacements

* refactor(rust/builders): remove nix version check for writing cargo.lock to store

* tests: update dream2nix input before overriding it

* tests: remove 'flake.lock's, overriding input generates flake.lock correctly

* tests: use nixpkgs from dream2nix input in d2n-init-pkgs

* refactor: remove useless builtins.path calls

* fix: use writeText for writing generated Cargo.lock, toFile causes problems
2022-06-05 13:14:20 +02:00
DavHau
6bc00a70df improve comments in yarn-lock/parser.nix 2022-06-03 14:12:00 +02:00
Yusuf Bera Ertan
33e2a3e39f
fix: add projectRoot to simple template 2022-06-02 17:46:35 +03:00
Yusuf Bera Ertan
8e170fe1f8
chore(deps): update crane 2022-06-02 14:14:34 +03:00
DavHau
073fed4eb2 yarn-lock: add more comments to parser.nix 2022-06-02 09:48:53 +02:00