nixmodules icon indicating copy to clipboard operation
nixmodules copied to clipboard

Convert replit module to V2

Open airportyh opened this issue 10 months ago • 2 comments

Why

Convert replit module to V2 scheme.

What changed

  1. Moved dotreplit-lsp over
  2. Added a replit bundle
  3. Set the default enable value for replit bundle to true. This gives users the ability to opt-out by setting bundles.replit.enable = false

Test

  1. nix build .#v2.examples.replit
  2. ls result

airportyh avatar Apr 17 '24 16:04 airportyh

Re: https://github.com/replit/nixmodules/pull/314#discussion_r1568988605 it's possible to default Python's useSiteCustomize to true when replit bundle is enabled, but I am not sure that's what we want, because a user wanting to disable the replit bundle doesn't mean they are not running in a repl.

airportyh avatar Apr 17 '24 16:04 airportyh

a user wanting to disable the replit bundle doesn't mean they are not running in a repl.

agreed, looks like we'll want some stdenv-style magic attrs that represent the nature of the user's environment

cdmistman avatar Apr 17 '24 17:04 cdmistman