From 370fd067b60d4117b81f46a67feeb63bf965b5d2 Mon Sep 17 00:00:00 2001 From: aszlig Date: Sun, 23 Apr 2017 19:43:19 +0200 Subject: taalo-build: Use Nix 1.11 for the backend Nix 1.12 already got rid of most of the Perl stuff so the Perl script backing taalo-build doesn't work anymore because Nix/CopyClosure.pm is no longer available. One way to fix this properly is to part the backend to C++ and use the new ssh-ng store backend. This would also have the advantage that we don't need to hardcode protocol internals here anymore. Unfortunately, Nix 1.12 isn't stable yet and we would break Nix 1.11 if we use the new store API. So that's why I'm pinning the backend to use Nix 1.11 instead and leave that ugly Perl script until Nix 1.2 is stable. Signed-off-by: aszlig --- modules/user/aszlig/programs/taalo-build/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/user/aszlig/programs/taalo-build/default.nix b/modules/user/aszlig/programs/taalo-build/default.nix index 55356e9f..5fb09438 100644 --- a/modules/user/aszlig/programs/taalo-build/default.nix +++ b/modules/user/aszlig/programs/taalo-build/default.nix @@ -1,8 +1,17 @@ { config, pkgs, lib, ... }: let + # Make sure we use a Nix version prior to 1.12, because taalo currently uses + # the legacy SSH protocol, so we can't use the ssh-ng store backend here. + # + # Apart from that, even if we would use the new store backend we would break + # the taalo-build backend for Nix 1.11. + inherit (import (import (../../../../../nixpkgs-path.nix)) { + config = {}; + }) nix; + backend = pkgs.writeScript "taalo-realize-backend" '' - #!${pkgs.perl}/bin/perl -I${pkgs.nix}/lib/perl5/site_perl + #!${pkgs.perl}/bin/perl -I${nix}/lib/perl5/site_perl use strict; use Nix::CopyClosure; use Nix::SSH; -- cgit 1.4.1