about summary refs log tree commit diff
path: root/pkgs/tvl
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-02-06 11:53:48 +0100
committersterni <sternenseemann@systemli.org>2022-03-24 09:26:17 +0100
commit99ab2a7400c981ca89c72dc8ad1038cb89dc9b12 (patch)
treed42e09d65a4bd33a12a1322e11d29696aa904da2 /pkgs/tvl
parentf5f600e3908b4b00714a9658c2708b825322a137 (diff)
pkgs/tvl: expose tvl's depot in vuizvui
depot is a nix-based monorepo which contains some great nix utilities
like yants (a nix type system), runTestsuite, mergePatch and so on, a
few interesting pure nix builders like buildLisp and buildGo and a few
packages maintained by @Profpatsch and myself.

This change exposes tvl completely as pkgs.tvl, but prevents hydra from
building it using dontRecurseIntoAttrs as depot pins its own version of
nixpkgs which is not easily overrideable, contains some expensive to
build system configurations we are not interested in and even some
notoriously indeterministic packages.

Additionally it is possible to override pkgs.tvl to use a different or
local version of depot:

    pkgs.tvl.override { tvlSrc = /home/lukas/src/depot; }

To keep with @Profpatsch's previous solution, we pass in vuizvui's
nixpkgs version to depot via nixpkgsBisectPath which may break packages
in depot occasionally if nixpkgs causes breakage in TVL and depot isn't
updated accordingly.
Diffstat (limited to 'pkgs/tvl')
-rw-r--r--pkgs/tvl/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/tvl/default.nix b/pkgs/tvl/default.nix
new file mode 100644
index 00000000..f84e3fa3
--- /dev/null
+++ b/pkgs/tvl/default.nix
@@ -0,0 +1,12 @@
+{ tvlSrc ? builtins.fetchGit {
+    name = "tvl-depot";
+    url = "https://code.tvl.fyi";
+    rev = "98371362f25202f8afae3949b618b0db78d5ea1d";
+    ref = "canon";
+  }
+, pkgs
+}:
+
+import tvlSrc {
+  nixpkgsBisectPath = pkgs.path; # TODO: does this improve eval time significantly?
+}