rename our libraries: libnixexpr -> liblixexpr, etc #279
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#279
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
For runtime purposes, we are CppNix 2.18 (compatible; like Gecko), but for build-time purposes, we are Lix, and anything trying to link against us should explicitly detect and support Lix, as there is no way we are going to have perfect header and symbol compatibility with CppNix 2.18 (and the C++ API has never been stable anyway).
Therefore, let's change our pkg-config and library names from libnix{expr,store,cmd,main,util,fetchers} to liblix{expr,store,cmd,main,util,fetchers}
cc @jade
imo this needs to be complete for release to prevent anyone writing bad lix detection code that will later need to be dealt with.
OK so there is the approach suggested in the CL, which is just nix -> lix externally. But we could actually also squish a secondary change into that, namely,
nix/*.hh
intolix/libexpr/*.hh
and such. This should not cause additional breakage.This would be compatible with our plans to rename the header references internally, and would remain compatible if we use pkg-config to change the
-I
to includelix/libexpr
etc also.Thoughts on this approach? Should we just ship the
nix/
->lix/
now as in the CL and defer thelibexpr/
part? The thought I have is that people who are usingnix/
include paths already will have a breakage with this, but not those using#include <value.hh>
etc, and we might as well execute our other desired change to those now, externally, so that only breaks once. The internal part would still be a second change.External clients and internal clients could be fixed from the single-level to the multi-level with a clang-tidy automated refactor we already have the code for.