mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-12-05 03:46:16 +02:00
5576d5e987
Prior to this change, we had a bunch of ad-hoc string manipulation code scattered around. This made it hard to figure out what data model for string contexts is. Now, we still store string contexts most of the time as encoded strings --- I was wary of the performance implications of changing that --- but whenever we parse them we do so only through the `NixStringContextElem::parse` method, which handles all cases. This creates a data type that is very similar to `DerivedPath` but: - Represents the funky `=<drvpath>` case as properly distinct from the others. - Only encodes a single output, no wildcards and no set, for the "built" case. (I would like to deprecate `=<path>`, after which we are in spitting distance of `DerivedPath` and could maybe get away with fewer types, but that is another topic for another day.)
11 lines
254 B
Makefile
11 lines
254 B
Makefile
libraries += libplugintest
|
|
|
|
libplugintest_DIR := $(d)
|
|
|
|
libplugintest_SOURCES := $(d)/plugintest.cc
|
|
|
|
libplugintest_ALLOW_UNDEFINED := 1
|
|
|
|
libplugintest_EXCLUDE_FROM_LIBRARY_LIST := 1
|
|
|
|
libplugintest_CXXFLAGS := -I src/libutil -I src/libstore -I src/libexpr
|