Commit graph

7 commits

Author SHA1 Message Date
stefan
1fa632c291 nix: add overlay, remove flake-parts, and other changes
Most of the changes are heavily inspired by the structure of Niri's
flake.nix.
- add overlay
- add formatter for nix
- remove flake-parts
- use rust-overlay only for the dev shell. end users can set `inputs.rust-overlay.follows = ""` to skip downloading it.
- add rust-analyzer and rust-src extensions in the dev shell
- filter the source in order to reduce rebuilds
- support all Linux systems that the nixpkgs flake exposes
- override VERGEN_GIT_DESCRIBE to include the git rev as well
- remove `clangStdenv` from the dev shell.  I'm not sure what purpose it served. If the intention was faster linking with lld, then it's not needed anymore, now that lld has become the default linker in rust 1.90.0.
2026-02-02 20:51:44 -05:00
Milo
6a5150c45c Update nixpkgs from 25.05 to 25.11
Fixes #289
2025-12-02 01:11:10 -05:00
yuko1101
a9188e70bd nix: upgrade nixpkgs to 25.05 to fix build issue 2025-10-05 19:31:24 -04:00
Johannes Horner
ba78881a68 nix: Set mainProgram attribute 2025-07-12 12:33:20 -04:00
e-tho
4e85e8c69e
Refactor flake for overridability, conditional service install, version formatting (#65)
* Refactor flake for overridability, conditional service install, version formatting

* Disable default cargo features for the flake package

Co-authored-by: sodiboo <37938646+sodiboo@users.noreply.github.com>

* Replace deprecated `--replace` with `--replace-fail` in the flake package

Co-authored-by: sodiboo <37938646+sodiboo@users.noreply.github.com>

* Remove `unstable` from flake package version

Co-authored-by: sodiboo <37938646+sodiboo@users.noreply.github.com>

* Refactor flake to enable dependency overridability

* Pass lib explicitly in flake package

* Fix incorrect package path in flake package dependency

* Replace makeWrapper with makeBinaryWrapper

* Enhance build by separating substitution, service install, and wrapping

* Remove redundant arguments from package call

---------

Co-authored-by: sodiboo <37938646+sodiboo@users.noreply.github.com>
2024-10-27 17:59:15 -04:00
e-tho
8703e243eb
Add optional systemd support to flake package (#63)
* Enable systemd support in the flake package

* Add optional derivation without systemd support
2024-10-23 01:03:07 -04:00
Gavin
07d3cb9820
add: nix flake (#53) 2024-09-14 11:09:49 -04:00