+
+
+ build_disable_daemon =
+ { system ? builtins.currentSystem }:
+
+ let
+ pkgs = import nixpkgs { inherit system; };
+ build = jobs.build { inherit system; };
+ in
+ pkgs.lib.overrideDerivation build ({ configureFlags, ... }: {
+ configureFlags = configureFlags ++ [ "--disable-daemon" ];
+ buildInputs = with pkgs; [ guile nixUnstable pkgconfig ];
+
+ # Since we need to talk to a running daemon, we need to escape
+ # the chroot.
+ preConfigure = "export NIX_REMOTE=daemon";
+ __noChroot = true;
+ });
+
+ # Jobs to test the distro.
+ distro = {
+ hello =
+ { system ? builtins.currentSystem }:
+
+ let
+ pkgs = import nixpkgs { inherit system; };
+ guix = jobs.build { inherit system; };
+ in
+ # XXX: We have no way to tell the Nix code to swallow the .drv
+ # produced by `guix-build', so we have a pointless indirection
+ # here. This could be worked around by generating Nix code
+ # from the .drv, and importing that.
+ pkgs.releaseTools.nixBuild {
+ src = null;
+ name = "guix-hello";
+ phases = "buildPhase";
+ buildPhase = "${guix}/bin/guix-build --no-substitutes hello | tee $out";
+ __noChroot = true;
+ };
+ };