mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
release.nix: Add a `distro.hello' job.
* release.nix (distro.hello): New job.
This commit is contained in:
parent
5992f213d7
commit
9144af5aa7
1 changed files with 23 additions and 0 deletions
23
release.nix
23
release.nix
|
@ -86,6 +86,29 @@ let
|
|||
inherit succeedOnFailure keepBuildDirectory
|
||||
buildOutOfSourceTree;
|
||||
};
|
||||
|
||||
|
||||
# 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 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;
|
||||
phases = "buildPhase";
|
||||
buildInputs = [ guix ];
|
||||
buildPhase = "guix-build hello";
|
||||
__noChroot = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
jobs
|
||||
|
|
Loading…
Reference in a new issue