declare a development shell in flake.nix#372
Merged
stapelberg merged 1 commit intoi3:mainfrom Sep 29, 2025
Merged
Conversation
orestisfl
approved these changes
Sep 29, 2025
Member
orestisfl
left a comment
There was a problem hiding this comment.
Sure
Can we elaborate in the description or a comment about this file. For example, what it is, that we don't maintain it, it's not officially supported but PRs are welcome.
This makes it possible to build i3lock (for development) on any system on which Nix can be installed (= most Linux systems). For example, I start Emacs using `nix develop --command emacs` and that Emacs process is in an environment with all i3lock build deps. See also: https://michael.stapelberg.ch/posts/2025-07-27-dev-shells-with-nix-4-quick-examples/ This file is provided best-effort, but PRs are welcome.
3dd58f2 to
526db69
Compare
Member
Author
|
Sure, I updated the commit message accordingly. |
stapelberg
added a commit
to stapelberg/i3
that referenced
this pull request
Dec 19, 2025
This makes it possible to build i3 (for development) on any system on which Nix can be installed (= most Linux systems). For example, I start Emacs using `nix develop --command emacs` and that Emacs process is in an environment with all i3 build deps. See also: https://michael.stapelberg.ch/posts/2025-07-27-dev-shells-with-nix-4-quick-examples/ This file is provided best-effort, but PRs are welcome. While users can already run `nix develop nixpkgs#i3`, for nix-direnv integration it is required to declare a flake.nix in the project directory (otherwise direnv cannot find it). similar to i3/i3lock#372 related to i3#6549
stapelberg
added a commit
to i3/i3
that referenced
this pull request
Dec 23, 2025
This makes it possible to build i3 (for development) on any system on which Nix can be installed (= most Linux systems). For example, I start Emacs using `nix develop --command emacs` and that Emacs process is in an environment with all i3 build deps. See also: https://michael.stapelberg.ch/posts/2025-07-27-dev-shells-with-nix-4-quick-examples/ This file is provided best-effort, but PRs are welcome. While users can already run `nix develop nixpkgs#i3`, for nix-direnv integration it is required to declare a flake.nix in the project directory (otherwise direnv cannot find it). similar to i3/i3lock#372 related to #6549
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For context, I had to declare this file anyway for developing i3lock, so I figured I might as well put it into the repository for the benefit of others. Of course, people who want to ignore Nix are free to keep doing so :)
From the commit message:
This makes it possible to build i3lock (for development) on any system on which Nix can be installed (= most Linux systems).
For example, I start Emacs using
nix develop --command emacsand that Emacs process is in an environment with all i3lock build deps.See also:
https://michael.stapelberg.ch/posts/2025-07-27-dev-shells-with-nix-4-quick-examples/