diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-31 08:48:57 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-31 08:48:57 +0100 |
commit | 7083607e1280ea3f75f97f72f8dce8eee91f94fe (patch) | |
tree | fe0e0b59249d3a009ffc5b19b6d109a3f6a685ea /nixos/release.nix | |
parent | a840dae93519d15cf15578f455545189695f016f (diff) | |
download | nixpkgs-7083607e1280ea3f75f97f72f8dce8eee91f94fe.tar nixpkgs-7083607e1280ea3f75f97f72f8dce8eee91f94fe.tar.gz nixpkgs-7083607e1280ea3f75f97f72f8dce8eee91f94fe.tar.bz2 nixpkgs-7083607e1280ea3f75f97f72f8dce8eee91f94fe.tar.lz nixpkgs-7083607e1280ea3f75f97f72f8dce8eee91f94fe.tar.xz nixpkgs-7083607e1280ea3f75f97f72f8dce8eee91f94fe.tar.zst nixpkgs-7083607e1280ea3f75f97f72f8dce8eee91f94fe.zip |
Generate manual for i686-linux as well as x86_64-linux
Diffstat (limited to 'nixos/release.nix')
-rw-r--r-- | nixos/release.nix | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/nixos/release.nix b/nixos/release.nix index 866a992f79a..1ffb334d90a 100644 --- a/nixos/release.nix +++ b/nixos/release.nix @@ -12,8 +12,12 @@ let systems = [ "x86_64-linux" "i686-linux" ]; + forAllSystems = pkgs.lib.genAttrs systems; + pkgs = import nixpkgs { system = "x86_64-linux"; }; + lib = pkgs.lib; + versionModule = { system.nixosVersionSuffix = versionSuffix; @@ -109,23 +113,23 @@ in rec { }; - manual = iso_minimal.x86_64-linux.config.system.build.manual.manual; - manpages = iso_minimal.x86_64-linux.config.system.build.manual.manpages; + manual = forAllSystems (system: (builtins.getAttr system iso_minimal).config.system.build.manual.manual); + manpages = forAllSystems (system: (builtins.getAttr system iso_minimal).config.system.build.manual.manpages); - iso_minimal = pkgs.lib.genAttrs systems (system: makeIso { + iso_minimal = forAllSystems (system: makeIso { module = ./modules/installer/cd-dvd/installation-cd-minimal.nix; type = "minimal"; inherit system; }); - iso_minimal_new_kernel = pkgs.lib.genAttrs systems (system: makeIso { + iso_minimal_new_kernel = forAllSystems (system: makeIso { module = ./modules/installer/cd-dvd/installation-cd-minimal-new-kernel.nix; type = "minimal-new-kernel"; inherit system; }); - iso_graphical = pkgs.lib.genAttrs systems (system: makeIso { + iso_graphical = forAllSystems (system: makeIso { module = ./modules/installer/cd-dvd/installation-cd-graphical.nix; type = "graphical"; inherit system; @@ -133,7 +137,7 @@ in rec { # A variant with a more recent (but possibly less stable) kernel # that might support more hardware. - iso_new_kernel = pkgs.lib.genAttrs systems (system: makeIso { + iso_new_kernel = forAllSystems (system: makeIso { module = ./modules/installer/cd-dvd/installation-cd-new-kernel.nix; type = "new-kernel"; inherit system; @@ -141,7 +145,7 @@ in rec { # A variant with efi booting support. Once cd-minimal has a newer kernel, # this should be enabled by default. - iso_efi = pkgs.lib.genAttrs systems (system: makeIso { + iso_efi = forAllSystems (system: makeIso { module = ./modules/installer/cd-dvd/installation-cd-efi.nix; type = "efi"; maintainers = [ "shlevy" ]; @@ -150,7 +154,7 @@ in rec { # A bootable VirtualBox virtual appliance as an OVA file (i.e. packaged OVF). - ova = pkgs.lib.genAttrs systems (system: + ova = forAllSystems (system: with import nixpkgs { inherit system; }; @@ -186,7 +190,7 @@ in rec { # boot that system from uboot (like for the sheevaplug). # The pc variant helps preparing the expression for the system tarball # in a machine faster than the sheevpalug - system_tarball_pc = pkgs.lib.genAttrs systems (system: makeSystemTarball { + system_tarball_pc = forAllSystems (system: makeSystemTarball { module = ./modules/installer/cd-dvd/system-tarball-pc.nix; inherit system; }); @@ -211,7 +215,7 @@ in rec { # Run the tests in ./tests/default.nix for each platform. You can # run a test by doing e.g. "nix-build -A tests.login.x86_64-linux". tests = - with pkgs.lib; + with lib; let testsFor = system: mapAttrsRecursiveCond (x: !x ? test) (n: v: listToAttrs [(nameValuePair system v.test)]) |