From 99ab2a7400c981ca89c72dc8ad1038cb89dc9b12 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Sat, 6 Feb 2021 11:53:48 +0100 Subject: 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. --- pkgs/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'pkgs/default.nix') diff --git a/pkgs/default.nix b/pkgs/default.nix index a508a060..94fa4116 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -1,7 +1,12 @@ { pkgs ? import (import ../nixpkgs-path.nix) {} }: let - inherit (pkgs.lib) callPackageWith; + inherit (pkgs.lib) + callPackageWith + recurseIntoAttrs + dontRecurseIntoAttrs + ; + callPackage = callPackageWith (pkgs // self.vuizvui); callPackage_i686 = callPackageWith (pkgs.pkgsi686Linux // self.vuizvui); @@ -10,7 +15,7 @@ let pkgsi686Linux = pkgs.pkgsi686Linux // self.vuizvui; }; - self.vuizvui = pkgs.recurseIntoAttrs { + self.vuizvui = recurseIntoAttrs { mkChannel = callPackage ./build-support/channel.nix { }; buildSandbox = callPackage ./build-support/build-sandbox {}; lazy-packages = callPackage ./build-support/lazy-packages {}; @@ -30,5 +35,7 @@ let openlab = callPackageScope ./openlab; profpatsch = callPackageScope ./profpatsch; sternenseemann = callPackageScope ./sternenseemann; + + tvl = dontRecurseIntoAttrs (callPackage ./tvl { }); }; in self.vuizvui -- cgit 1.4.1