ci.nix: simplify to single arch

This commit is contained in:
Alexander Sosedkin 2021-12-16 22:13:57 +01:00
parent 7aeb529aab
commit 9ee03e218d
2 changed files with 3 additions and 8 deletions

9
ci.nix
View file

@ -5,12 +5,7 @@ with import <nixpkgs> { };
with lib; with lib;
let let
pkgs = import ./pkgs; pkgs = (import ./pkgs {}) // { recurseForDerivations = true; };
attrs = genAttrs
[ "aarch64" ]
(arch: (pkgs { inherit arch; }) // { recurseForDerivations = true; });
isCacheable = p: !(p.preferLocalBuild or false); isCacheable = p: !(p.preferLocalBuild or false);
shouldRecurseForDerivations = p: isAttrs p && p.recurseForDerivations or false; shouldRecurseForDerivations = p: isAttrs p && p.recurseForDerivations or false;
@ -23,7 +18,7 @@ let
in in
concatMap f (attrValues s); concatMap f (attrValues s);
cachePkgs = filter isCacheable (flattenPkgs attrs); cachePkgs = filter isCacheable (flattenPkgs pkgs);
outputsOf = p: map (o: p.${o}) p.outputs; outputsOf = p: map (o: p.${o}) p.outputs;
in in

View file

@ -1,6 +1,6 @@
# Copyright (c) 2019-2021, see AUTHORS. Licensed under MIT License, see LICENSE. # Copyright (c) 2019-2021, see AUTHORS. Licensed under MIT License, see LICENSE.
{ arch, nixOnDroidChannelURL ? null, nixpkgsChannelURL ? null }: { arch ? "aarch64", nixOnDroidChannelURL ? null, nixpkgsChannelURL ? null }:
let let
nixDirectory = callPackage ./nix-directory.nix { }; nixDirectory = callPackage ./nix-directory.nix { };