2
0
Fork
You've already forked helix
1

feat(nix): init flake and devshell #2

Manually merged
koibtw merged 3 commits from samminhch/evergarden-helix:Nix-Integration into main 2026年01月23日 00:32:05 +01:00
Contributor
Copy link
No description provided.
samminhch changed title from (削除) WIP: feat: add shell.nix integration (削除ここまで) to feat: add shell.nix integration 2026年01月22日 20:24:13 +01:00
koibtw requested changes 2026年01月22日 21:03:13 +01:00
Dismissed
koibtw left a comment
Copy link

oh my fault a flake would actually be better with whiskers and stuff so this one (447d4f4fb1/flake.nix) was good with a few suggestions:

  • use unstable nixpkgs
  • use https://codeberg.org/evergarden/whiskers/archive/main.tar.gz for whiskers
  • instead of locking the system to x86_64-linux, use something like this:
    forAllSystems =
    function:
    nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (
    system: function nixpkgs.legacyPackages.${system}
    );
  • use mkShellNoCC
oh my fault a flake would actually be better with whiskers and stuff so this one (https://codeberg.org/evergarden/helix/src/commit/447d4f4fb151d220b4e579410539e0fba71674db/flake.nix) was good with a few suggestions: - use unstable nixpkgs - use `https://codeberg.org/evergarden/whiskers/archive/main.tar.gz` for whiskers - instead of locking the system to `x86_64-linux`, use something like this: https://codeberg.org/evergarden/whiskers/src/commit/89c61f95f7ce1521c5c07ac89fb9ab08d68a2d13/flake.nix#L11-L15 - use `mkShellNoCC`
Author
Contributor
Copy link

@koibtw wrote in #2 (comment):

oh my fault a flake would actually be better with whiskers and stuff so this one (447d4f4fb1/flake.nix) was good with a few suggestions:

* use unstable nixpkgs
* use `https://codeberg.org/evergarden/whiskers/archive/main.tar.gz` for whiskers
* instead of locking the system to `x86_64-linux`, use something like this: [evergarden/whiskers](https://codeberg.org/evergarden/whiskers/) – [flake.nix](https://codeberg.org/evergarden/whiskers/src/commit/89c61f95f7ce1521c5c07ac89fb9ab08d68a2d13/flake.nix#L11-L15)Lines 11 to 15 in [evergarden/whiskers@89c61f9](https://codeberg.org/evergarden/whiskers/src/commit/89c61f95f7ce1521c5c07ac89fb9ab08d68a2d13)` forAllSystems =
 `` function:
 `` nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (
 `` system: function nixpkgs.legacyPackages.${system}
 `` );
 `
* use `mkShellNoCC`

Okay it's been done :). I also have a question out of curiousity, why do we pull the tar.gz of our repos when we could fetch the git url from it? I haven't really seen any other nix input besides ours using tar.gz so I am just wondering

@koibtw wrote in https://codeberg.org/evergarden/helix/pulls/2#issuecomment-10086879: > oh my fault a flake would actually be better with whiskers and stuff so this one ([`447d4f4fb1/flake.nix`](https://codeberg.org/evergarden/helix/src/commit/447d4f4fb151d220b4e579410539e0fba71674db/flake.nix)) was good with a few suggestions: > > * use unstable nixpkgs > > * use `https://codeberg.org/evergarden/whiskers/archive/main.tar.gz` for whiskers > > * instead of locking the system to `x86_64-linux`, use something like this: [evergarden/whiskers](https://codeberg.org/evergarden/whiskers/) – [flake.nix](https://codeberg.org/evergarden/whiskers/src/commit/89c61f95f7ce1521c5c07ac89fb9ab08d68a2d13/flake.nix#L11-L15)Lines 11 to 15 in [evergarden/whiskers@89c61f9](https://codeberg.org/evergarden/whiskers/src/commit/89c61f95f7ce1521c5c07ac89fb9ab08d68a2d13)` forAllSystems = > `` function: > `` nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed ( > `` system: function nixpkgs.legacyPackages.${system} > `` ); > ` > > * use `mkShellNoCC` Okay it's been done :). I also have a question out of curiousity, why do we pull the `tar.gz` of our repos when we could fetch the git url from it? I haven't really seen any other nix input besides ours using `tar.gz` so I am just wondering

thanks! the tarball doesnt contain repo info and git stuff so its somewhat lighter. ive seen this done in a lot of flakes

thanks! the tarball doesnt contain repo info and git stuff so its somewhat lighter. ive seen this done in a lot of flakes
koibtw changed title from (削除) feat: add shell.nix integration (削除ここまで) to feat(nix): init flake and devshell 2026年01月23日 00:22:37 +01:00
koibtw manually merged commit 39b0ce9d76 into main 2026年01月23日 00:32:05 +01:00
Author
Contributor
Copy link

@koibtw wrote in #2 (comment):

thanks! the tarball doesnt contain repo info and git stuff so its somewhat lighter. ive seen this done in a lot of flakes

Ah that makes a lot of sense! I guess I have more flakes to explore then haha

@koibtw wrote in https://codeberg.org/evergarden/helix/pulls/2#issuecomment-10091436: > thanks! the tarball doesnt contain repo info and git stuff so its somewhat lighter. ive seen this done in a lot of flakes Ah that makes a lot of sense! I guess I have more flakes to explore then haha
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
evergarden/helix!2
Reference in a new issue
evergarden/helix
No description provided.
Delete branch "samminhch/evergarden-helix:Nix-Integration"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?