Proposal: Reorganize Nix packages (lem as full-featured, lem-ncurses as minimal)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Quiet
- Domain
- build-system
Research direction
Read the linked discussion in PR #2024 and inspect the repository’s Nix package definitions to understand the current package boundaries. The issue asks maintainers to choose between two package layouts and resolve platform support and SDL2 packaging questions; implementation can be scoped once those decisions are made.
Written by the indexing model from the issue text.
Description
Background
In PR #2024, @tani suggested merging lem-webview into lem-cli:
do you have any plan to contain merge lem-webview nix package into lem-cli? I prefer do that.
https://github.com/lem-project/lem/pull/2024#pullrequestreview-3574227914
Current Structure
| Package | Contents |
|---|---|
lem (lem-cli) |
ncurses + SDL2 |
lem-webview |
WebKit GUI |
Proposed Structure
| Package | Contents | Use Case |
|---|---|---|
lem |
ncurses + SDL2 + webview | Desktop users (full-featured) |
lem-ncurses |
ncurses only | Server / minimal environments |
Benefits
- Intuitive naming:
lemprovides all features out of the box - Addresses @tani's feedback: Integration of frontends
- Lightweight option available:
lem-ncursesfor minimal environments - Simple: 2 packages cover all use cases
Concerns
- Heavier default:
nix run github:lem-project/lemwould download WebKitGTK (~hundreds of MB) - macOS compatibility: WebKitGTK is Linux-focused. May need conditional logic:
lem = if pkgs.stdenv.isLinux then lem-full # Linux: all frontends else lem-cli; # macOS: SDL2 + ncurses only - SDL2-only option: Users who want SDL2 without ncurses or webview would need a separate package
Alternative: 3-package structure
| Package | Contents | Notes |
|---|---|---|
lem |
ncurses + SDL2 | Current default, most portable |
lem-ncurses |
ncurses only | Minimal |
lem-full |
All frontends | Linux only |
Questions for Discussion
- Should
lembe the full-featured package or stay as ncurses + SDL2? - Do we need a SDL2-only package?
- How should we handle macOS where webview may not work?
/cc @tani
- Dominant language
- Common Lisp
- Stars
- 3.1k
- Forks
- 261
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 133
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lem-project/lem
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
lem-project/lem#2525 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
lem-project/lem#2524 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
lem-project/lem#2488 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
lem-project/lem#2369 ·
Maintainers usually reply within 1 day
-
unix-paste-bugOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lem-project/lem#2360 ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
avaje/avaje-metrics#142 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
re1n0/nixos-millennium#19 · 2 comments ·
-
CI: cache pip downloads in tests.ymlPossibly taken @crackedkdeen001 claimed this today. Openenhancement github_actions good first issue
Difficulty 1/5 Under an hour Newbie friendliness 94/100
Aletheore/Aletheore#1373 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
nm, cpp, and objdump are absent from the new rule based toolchainPossibly taken @cerisier claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
bazelbuild/apple_support#707 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nextjournal/clerk#830 ·