Proposal: Reorganize Nix packages (lem as full-featured, lem-ncurses as minimal)

Open
#2,030 3 comments 1 reaction 0 assignees View on GitHub

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

  1. Intuitive naming: lem provides all features out of the box
  2. Addresses @tani's feedback: Integration of frontends
  3. Lightweight option available: lem-ncurses for minimal environments
  4. Simple: 2 packages cover all use cases

Concerns

  1. Heavier default: nix run github:lem-project/lem would download WebKitGTK (~hundreds of MB)
  2. 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
    
  3. 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

  1. Should lem be the full-featured package or stay as ncurses + SDL2?
  2. Do we need a SDL2-only package?
  3. 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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lem-project/lem

All issues in lem-project/lem

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.