Files
nix-public-expressions/release.nix

24 lines
537 B
Nix
Raw Normal View History

2016-10-22 17:19:31 +02:00
{
supportedSystems ? ["i686-linux" "x86_64-linux"]
2016-10-22 17:06:25 +02:00
}:
2016-10-22 17:19:31 +02:00
with import ./blog-gallery.nix;
with (import <nixpkgs/pkgs/top-level/release-lib.nix> { inherit supportedSystems; });
{
# Simply assign a derivation to an attribute to have it built.
hello_world_1 = pkgs_x86_64_linux.hello;
# 'hydraJob' strips all non-essential attributes.
hello_world_2 = pkgs.lib.hydraJob pkgs_x86_64_linux.hello;
blog_gallery;
} // mapTestOn {
# Fancy shortcut to generate one attribute per supported platform.
hello = supportedSystems;
}