about summary refs log tree commit diff
path: root/third_party/nix/src/libexpr/CMakeLists.txt
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-05-18T15·39+0200
committerclbot <clbot@tvl.fyi>2022-05-19T14·08+0000
commitd127f9bd0e7b9b2e0df2de8a2227f77c0907468d (patch)
tree68455040d88b8e0c2817601db88ede450873ff8e /third_party/nix/src/libexpr/CMakeLists.txt
parentc85291c602ac666421627d6934ebc6d5be1b93e1 (diff)
chore(3p/nix): unvendor tvix 0.1 r/4098
Nothing is using this now, and we'll likely never pick this up again,
but we learned a lot in the process.

Every now and then this breaks in some bizarre way on channel bumps
and it's just a waste of time to maintain that.

Change-Id: Idcf2f5acd4ca7070ce18d7149cbfc0d967dc0a44
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5632
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Reviewed-by: lukegb <lukegb@tvl.fyi>
Autosubmit: tazjin <tazjin@tvl.su>
Diffstat (limited to 'third_party/nix/src/libexpr/CMakeLists.txt')
-rw-r--r--third_party/nix/src/libexpr/CMakeLists.txt85
1 files changed, 0 insertions, 85 deletions
diff --git a/third_party/nix/src/libexpr/CMakeLists.txt b/third_party/nix/src/libexpr/CMakeLists.txt
deleted file mode 100644
index 8cb7143d2c4b..000000000000
--- a/third_party/nix/src/libexpr/CMakeLists.txt
+++ /dev/null
@@ -1,85 +0,0 @@
-# -*- mode: cmake; -*-
-add_library(nixexpr SHARED)
-set_property(TARGET nixexpr PROPERTY CXX_STANDARD 17)
-include_directories(${PROJECT_BINARY_DIR}) # for 'generated/'
-target_include_directories(nixexpr PUBLIC "${nix_SOURCE_DIR}/src")
-
-# Generate lexer & parser for inclusion:
-find_package(BISON)
-find_package(FLEX)
-
-BISON_TARGET(NixParser parser.y
-  ${PROJECT_BINARY_DIR}/generated/parser-tab.cc
-  DEFINES_FILE ${PROJECT_BINARY_DIR}/generated/parser-tab.hh)
-
-FLEX_TARGET(NixLexer lexer.l
-  ${PROJECT_BINARY_DIR}/generated/lexer-tab.cc
-  DEFINES_FILE ${PROJECT_BINARY_DIR}/generated/lexer-tab.hh)
-
-ADD_FLEX_BISON_DEPENDENCY(NixLexer NixParser)
-
-set(HEADER_FILES
-    attr-path.hh
-    attr-set.hh
-    common-eval-args.hh
-    eval.hh
-    eval-inline.hh
-    function-trace.hh
-    get-drvs.hh
-    json-to-value.hh
-    names.hh
-    nixexpr.hh
-    parser.hh
-    primops.hh
-    symbol-table.hh
-    value.hh
-    value-to-json.hh
-    value-to-xml.hh
-)
-
-target_sources(nixexpr
-  PUBLIC
-    ${HEADER_FILES}
-
-  PRIVATE
-    ${PROJECT_BINARY_DIR}/generated/parser-tab.hh
-    ${PROJECT_BINARY_DIR}/generated/parser-tab.cc
-    ${PROJECT_BINARY_DIR}/generated/lexer-tab.hh
-    ${PROJECT_BINARY_DIR}/generated/lexer-tab.cc
-    primops/context.cc
-    primops/fetchGit.cc
-    primops/fetchMercurial.cc
-    primops/fromTOML.cc
-    attr-path.cc
-    attr-set.cc
-    common-eval-args.cc
-    eval.cc
-    function-trace.cc
-    get-drvs.cc
-    json-to-value.cc
-    names.cc
-    nixexpr.cc
-    parser.cc
-    primops.cc
-    symbol-table.cc
-    value.cc
-    value-to-json.cc
-    value-to-xml.cc
-)
-
-target_link_libraries(nixexpr
-  nixmain
-  nixstore
-  nixutil
-
-  absl::btree
-  absl::flat_hash_set
-  absl::node_hash_set
-  absl::strings
-)
-
-configure_file("nix-expr.pc.in" "${PROJECT_BINARY_DIR}/nix-expr.pc" @ONLY)
-INSTALL(FILES "${PROJECT_BINARY_DIR}/nix-expr.pc" DESTINATION "${PKGCONFIG_INSTALL_DIR}")
-
-INSTALL(FILES ${HEADER_FILES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/nix/libexpr)
-INSTALL(TARGETS nixexpr DESTINATION ${CMAKE_INSTALL_LIBDIR})