Tested hydra job to control release of channel (has to build okay)

This commit is contained in:
Tyson Whitehead
2018-01-23 22:57:09 -05:00
parent c0ba1362eb
commit 39f4271d28

View File

@@ -89,26 +89,41 @@ in let
in in
nixpkgs; nixpkgs;
in { # jobs - The jobs hydra is to run.
# Tweak the nixos make-channel code to include the upstream channel.
# #
# 1. Replace the git repo nixpkgs with a copy of the unpacked nixpkgs channel. jobs = {
# # Tweak the nixos make-channel code to include the upstream channel.
channel = #
( import (nixpkgsGit + /nixos/lib/make-channel.nix) { # 1. Replace the git repo nixpkgs with a copy of the unpacked nixpkgs channel.
inherit pkgs version versionSuffix; #
nixpkgs = ccpkgsGit; channel =
} ).overrideAttrs ( original: { ( import (nixpkgsGit + /nixos/lib/make-channel.nix) {
name = "ccpkgs-channel"; inherit pkgs version versionSuffix;
distPhase = nixpkgs = ccpkgsGit;
'' } ).overrideAttrs ( original: {
rm -fr upstream name = "ccpkgs-channel";
cp -rd ${nixpkgs}/nixos-${version} upstream distPhase =
'' + original.distPhase; ''
} ); rm -fr upstream
cp -rd ${nixpkgs}/nixos-${version} upstream
'' + original.distPhase;
} );
# tested - Aggregate package set required to built for automatic channel release
#
tested = pkgs.lib.hydraJob (pkgs.releaseTools.aggregate {
name = "ccpkgs-${version}";
constituents =
builtins.attrValues jobs.pkgs
++ builtins.attrValues jobs.temporary;
meta = {
description = "Release-critical builds for the ccpkgs channel";
maintainers = with pkgs.lib.maintainers; [ ];
};
});
overlays = {
# pkgs - Attribute set of overlayed pkgs. # pkgs - Attribute set of overlayed pkgs.
# #
pkgs = pkgs =
@@ -123,4 +138,5 @@ in {
( map ( name: { inherit name; value = pkgs.${name}; } ) ( map ( name: { inherit name; value = pkgs.${name}; } )
( builtins.attrNames ( import ./temporary/all-temporary.nix { } { } ) ) ); ( builtins.attrNames ( import ./temporary/all-temporary.nix { } { } ) ) );
}; };
}
in jobs