nsp
parent
d965ea4aae
commit
41922081c4
@ -1,33 +1,23 @@
|
|||||||
{ nixpkgs ? <nixpkgs>
|
{
|
||||||
#, systems ? [ "i686-linux" "x86_64-linux" "x86_64-darwin" ]
|
supportedSystems ? ["i686-linux" "x86_64-linux"]
|
||||||
, systems ? [ "x86_64-linux" ]
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
with import ./blog-gallery.nix;
|
||||||
pkgs = import nixpkgs {};
|
with (import <nixpkgs/pkgs/top-level/release-lib.nix> { inherit supportedSystems; });
|
||||||
|
|
||||||
version = "2016-10-22-v1";
|
{
|
||||||
|
|
||||||
jobset = import ./blog-gallery.nix {
|
# Simply assign a derivation to an attribute to have it built.
|
||||||
inherit pkgs;
|
hello_world_1 = pkgs_x86_64_linux.hello;
|
||||||
system = builtins.currentSystem;
|
|
||||||
};
|
# 'hydraJob' strips all non-essential attributes.
|
||||||
in
|
hello_world_2 = pkgs.lib.hydraJob pkgs_x86_64_linux.hello;
|
||||||
rec {
|
|
||||||
inherit (jobset) tarball;
|
blog_gallery;
|
||||||
|
|
||||||
package = pkgs.lib.genAttrs systems (system:
|
} // mapTestOn {
|
||||||
(import ./blog-gallery.nix {
|
|
||||||
pkgs = import nixpkgs { inherit system; };
|
# Fancy shortcut to generate one attribute per supported platform.
|
||||||
inherit system;
|
hello = supportedSystems;
|
||||||
}).package
|
|
||||||
);
|
|
||||||
|
|
||||||
release = pkgs.releaseTools.aggregate {
|
|
||||||
name = "perso-${version}";
|
|
||||||
constituents = [
|
|
||||||
tarball
|
|
||||||
]
|
|
||||||
++ map (system: builtins.getAttr system package) systems;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue