Janis
e9d888cd52
Set NIRI_BUILD_COMMIT in flake.nix ( #3235 )
2026-01-11 19:59:43 +03:00
LuckShiba
3158f5a9c0
nix: fix path replace in SystemD service
2026-01-03 21:43:13 +03:00
Ross Smyth
d9648e6bde
Revert "revert nushell completion for flake.nix"
...
This reverts commit ed799f5afc .
2025-09-18 11:26:11 +03:00
Ivan Molodetskikh
082d0581b7
Improve filtering for tests that need EGL
...
This way we don't skip the layout animation tests.
2025-08-29 10:07:15 +03:00
HigherOrderLogic
8a2d408cb6
nix: add cargo-insta to devShells
2025-08-25 09:44:43 +03:00
Cole Helbling
38df8d4f33
flake: skip tests that require a valid EGL display ( #2244 )
...
* flake: skip tests that require a valid EGL display
Otherwise:
niri> failures:
niri>
niri> ---- tests::animations::clientside_height_change_doesnt_animate stdout ----
niri>
niri> thread 'tests::animations::clientside_height_change_doesnt_animate' panicked at src/tests/animations.rs:87:54:
niri> called `Result::unwrap()` on an `Err` value: error creating EGL display
niri>
niri> Caused by:
niri> Unable to obtain a valid EGL Display.
niri> note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
niri>
niri> ---- tests::animations::height_resize_animates_next_y stdout ----
niri>
niri> thread 'tests::animations::height_resize_animates_next_y' panicked at src/tests/animations.rs:87:54:
niri> called `Result::unwrap()` on an `Err` value: error creating EGL display
niri>
niri> Caused by:
niri> Unable to obtain a valid EGL Display.
niri>
niri>
niri> failures:
niri> tests::animations::clientside_height_change_doesnt_animate
niri> tests::animations::height_resize_animates_next_y
niri>
niri> test result: FAILED. 147 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.45s
* flake: skip all animations tests, present and future
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
* fixup: typo
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2025-08-16 06:08:58 +00:00
Bloxx12
30a9c6c31b
nix: replace nix-filter with lib.fileset
...
Co-authored-by: sodiboo <git@sodi.boo >
2025-07-15 15:55:45 +03:00
sodiboo
ed799f5afc
revert nushell completion for flake.nix
2025-07-15 14:32:45 +03:00
Artrix
746a7e81b7
Add nushell completion support ( #2009 )
...
* Add nushell completion support
Adds `clap_complete_nushell` crate and implements it into the `niri
completions` command.
* Add nushell to flake.nix autocompletions
* Convert to `TryFrom`
* Fix linting errors
* Move types down
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2025-07-14 06:29:26 +00:00
sodiboo
ec5112d779
nix: update flake inputs and use new libgbm
...
fixes #1312
like
https://github.com/sodiboo/niri-flake/commit/0d54ea3f208f785b29f8396996b6bc8596d11a45
2025-03-23 12:21:55 -07:00
Johannes Horner
e11af089aa
nix: Install shell completions ( #1280 )
2025-03-17 17:16:39 +03:00
Maximilian Huber
fa2bace3cd
Fix nix flake for client-server tests ( #896 )
...
This was suggested by @sodiboo in
https://github.com/YaLTeR/niri/issues/894#issuecomment-2562153840 and
was copied from https://github.com/sodiboo/niri-flake/commit/350e6b68c70f5002a75e10521f5e66ace4b5eed1i
Signed-off-by: Maximilian Huber <gh@maxhbr.de >
2024-12-26 14:44:07 +00:00
sodiboo
7af937b08e
nix: clang -> rustPlatform.bindgenHook
2024-12-03 05:53:48 -08:00
LoipesMas
d58bb4eaa3
flake: set RUSTFLAGS instead of CARGO_BUILD_RUSTFLAGS
2024-11-02 12:35:04 -07:00
LoipesMas
c5fe25f422
flake: libseat has been renamed to seatd
2024-11-02 12:35:04 -07:00
sodiboo
e4161be1bf
flake: use nightly rust-analyzer and add rust-src component ( #735 )
...
this also improves the application of overlays to be more uniform; what
was previously done was just Wrong
2024-10-15 08:21:49 +03:00
seth
1b44e0cd20
flake: add overlay output
2024-10-05 12:09:24 -07:00
seth
b3d4d4eacc
flake: use rust-overlay in dev shell
...
This allows `niri-visual-tests` to still be built and run in the dev
shell where it's necessary, as well as brings back the nightly `rustfmt`
used by the project
We can't use `fenix` again though as it doesn't wrap `ld` like nixpkgs
and rust-overlay do; without it, the way we link `dlopen()`'d libraries
breaks
2024-10-05 12:09:24 -07:00
seth
b258fd69d2
flake: improve packaging
...
Some highlights include:
- Removing some unnecessary dependencies of the package itself
- Allowing for overriding the package
- Adding Cargo feature toggles
- Installing all niri-related resources
- Avoiding `LD_LIBRARY_PATH` hacks
2024-10-05 12:09:24 -07:00
seth
3ab3e778ab
flake: drop most external inputs
...
Previously, inputs like Crane and Fenix were used to only build the
`niri` package. This isn't really required, and can easily be replaced
by nixpkgs' `rustPlatform` -- which will also lead to less dependencies
being pulled into user's lockfiles
2024-10-05 12:09:24 -07:00
seth
e6203313ce
flake: format with nixfmt
2024-10-05 12:09:24 -07:00
seth
938061dd5e
flake: use nixfmt
2024-10-05 12:09:24 -07:00
sodiboo
6ee5b5afa7
flake: update inputs and remove crane.inputs.nixpkgs override
...
the input was removed in https://github.com/ipetkov/crane/pull/692
2024-09-15 08:05:05 -07:00
sodiboo
e5ecd27bbe
flake: add libdisplay-info to buildInputs
2024-09-04 09:39:22 -07:00
Ivan Molodetskikh
598b27f83c
flake: Remove maintainer comment
...
Effectively other contributors maintain it now.
2024-08-26 18:15:39 +03:00
sodiboo
dd919fe01b
fix cargo run on nixos
...
this boils down to adding some extra dependencies to the shell
environment. they're also inherited from craneArgs because the ones from
the package are actually transformed into the WRONG outputs of the
packages. also refactors to use craneLib.devShell because it's somewhat
cleaner.
2024-08-25 15:42:25 +03:00
Fea
b72d946062
Fix nix build
2024-08-14 10:49:54 +03:00
Suyashtnt
f2290a43d9
flake: update nix flake
...
Signed-off-by: Suyashtnt <suyashtnt@gmail.com >
2024-07-08 17:42:09 +03:00
Michael Forster
68ff36f683
Add libXcursor and libXi to nix flake
...
In my tests this was necessary to develop Niri using non-NixOS Nix.
Otherwise Niri panics with this error message: called `Result::unwrap()`
on an `Err` value: EventLoopCreation(NotSupported(NotSupportedError)).
2024-04-30 02:19:28 -07:00
sodiboo
24537ec2ba
Correctly handle parsing of Binds and DefaultColumnWidth ( #234 )
...
* add dev dependencies to flake
* parse only one default-column-width
* require exactly one action per bind, and unique keys for binds
* use proper filename for config errors if possible
* fix duplicate keybinds after invalid action, lose some sanity
2024-03-01 03:50:49 -08:00
Kiara Grouwstra
1b752fe08f
exclude visual tests from nix, closes #181
2024-02-12 00:01:03 +04:00
Ivan Molodetskikh
fa9b3ed106
Add a config parse error notification
...
We can't rely on a notification daemon being available, especially
during initial niri setup. So, render our own.
2024-01-18 12:44:05 +04:00
Ivan Molodetskikh
40c85da102
Add an IPC socket and a niri msg outputs subcommand
2024-01-17 10:45:18 +04:00
Bill Sun
236abd9d9d
Add Nix Flake ( #77 )
...
* Add Nix Flake
Co-authored-by: Bryce Berger <bryce.z.berger@gmail.com >
* Describe nix flake in readme
* Add `niri-config` to build source list
* Add maintainer info
Add comment at top to indicate the Nix Flake file
is community maintained.
* Clarify Nix/NixOS README instructions
* Shorten Nix/NixOS build instructions
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
* Move NixOS installation instruction to "Tip" section
---------
Co-authored-by: Bryce Berger <bryce.z.berger@gmail.com >
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2024-01-10 22:43:46 -08:00