Commit Graph

19 Commits

Author SHA1 Message Date
Brian McGee
e4637a77ef
feat: switch to oxalica/rust-overlay 2022-12-09 14:01:34 +00:00
zimbatm
84677166df
introduce treefmt.withConfig
This is useful if you want to configure treefmt with nix, and precisely
pass all the commands from nixpkgs.

Co-authored-by: Sridhar Ratnakumar <srid@srid.ca>
2022-09-21 18:40:21 +02:00
Sridhar Ratnakumar
becf50f2ff flake-parts: use the same nixpkgs 2022-08-23 11:08:12 -04:00
Sridhar Ratnakumar
3a042bf97b Switch to flake-parts 2022-08-23 11:03:29 -04:00
zimbatm
3824820f08
flake.nix: clean outputs
Move closer to the nix 2.8 schema
2022-05-18 20:26:35 +02:00
Sridhar Ratnakumar
3d306f9094 nix: use eachDefaultSystem (to allow macOS M1) 2022-05-03 19:09:25 -04:00
Jonas Chevalier
e7def7c29e
fix clippy warnings (#139) 2021-12-11 22:43:02 +01:00
zimbatm
10e55961d6
fix the macOS builds
replace the devshell to make it work on macOS
2021-11-12 22:37:05 +01:00
David Arnold
3801e8e10a
Trade in naersk for a newer version of nixpkgs (#134)
- Naersk has the annoying property to pin nixpkgs as a dep
- Nixpkgs mostly is a _core_ dependency that it is worth auditing duely
  (e.g. to avoid cache mismatches and other spourious errors)
- Every usage of naersk adds a another "spurious" nixpkgs dep somewhere
  to the flake lock. That makes auditing less straight forward.
2021-11-11 23:04:27 +00:00
Jonas Chevalier
07aaf738fd
nix: remove flake-compat (#117)
We shouldn't punish stable Nix users. flake-compat does that by making
the default.nix convoluted to use. Instead do the reverse and have
flake.nix depend on default.nix.
2021-06-29 11:01:37 +02:00
Jonas Chevalier
3dc5943e60
fix docs (#94)
* nix: simplify the code a bit

* docs: fix the website

Make the paths relative so they work on GitHub Pages. Fix the landing
page overriding the docs. Put the docs in the right sub-folder.
2021-03-03 13:45:46 +01:00
Basile Henry
0ecbb2c870
Publish the docbook to GitHub Pages (#89)
* Build docs in nix

* Build docs in CI and update gh-pages

* Format nix
2021-03-03 10:34:57 +01:00
Jonas Chevalier
b202af5706
ci: test on macOS (#85) 2021-03-02 17:36:01 +01:00
zimbatm
63f5b44dc4
flake: cleanup and update
Simplify the main flake.nix and update dependencies.
2021-02-15 21:37:28 +01:00
zimbatm
2ef8d63a32
devshell: update to latest version 2021-02-13 19:58:58 +01:00
Jonas Chevalier
df57ed8789
nix: use naerks, remove complexity (#45)
Introduce naersk so we don't have to update the cargoSha256 all the
time.

Use nixpkgs rust instead of rust-overlay to make the integration with
naersk easier.

Remove the overlay as it wasn't very useful. Since we depend on
third-party dependencies, the overlay cannot be used in standalone
anyways.

Update flake.lock
2021-02-07 19:43:22 +00:00
Jonas Chevalier
3852256526
fixes the build on NixOS (#20)
* remove curl

It is not being used right now and depends on libcurl and zlib

* devshell: add clang

Rust need a CC to compile some of the stuff. Since LLVM is being used by
Rust and clang is also working on darwin, use that.

* Use oxalica's rust-overlay, add project binary using rustPlatform, and update flake.nix

Co-authored-by: Andika Demas Riyandi <andika.riyan@gmail.com>
2021-01-27 14:39:55 +01:00
Andika Demas Riyandi
19f77cf969
rename project, adding cache mechanism (#12)
* rename project, adding cache mechanism

* refactor code and finalize cachin evaluation

* fix caching evaluation and manifest creation
2021-01-25 15:01:08 +01:00
Andika Demas Riyandi
9a47dad8b1 initial the project with basic Nix and Rust files 2020-12-18 17:26:56 +07:00