mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
ci.nix: simplify to single arch
This commit is contained in:
parent
7aeb529aab
commit
9ee03e218d
2 changed files with 3 additions and 8 deletions
9
ci.nix
9
ci.nix
|
|
@ -5,12 +5,7 @@ with import <nixpkgs> { };
|
|||
with lib;
|
||||
|
||||
let
|
||||
pkgs = import ./pkgs;
|
||||
|
||||
attrs = genAttrs
|
||||
[ "aarch64" ]
|
||||
(arch: (pkgs { inherit arch; }) // { recurseForDerivations = true; });
|
||||
|
||||
pkgs = (import ./pkgs {}) // { recurseForDerivations = true; };
|
||||
isCacheable = p: !(p.preferLocalBuild or false);
|
||||
shouldRecurseForDerivations = p: isAttrs p && p.recurseForDerivations or false;
|
||||
|
||||
|
|
@ -23,7 +18,7 @@ let
|
|||
in
|
||||
concatMap f (attrValues s);
|
||||
|
||||
cachePkgs = filter isCacheable (flattenPkgs attrs);
|
||||
cachePkgs = filter isCacheable (flattenPkgs pkgs);
|
||||
|
||||
outputsOf = p: map (o: p.${o}) p.outputs;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Copyright (c) 2019-2021, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||
|
||||
{ arch, nixOnDroidChannelURL ? null, nixpkgsChannelURL ? null }:
|
||||
{ arch ? "aarch64", nixOnDroidChannelURL ? null, nixpkgsChannelURL ? null }:
|
||||
|
||||
let
|
||||
nixDirectory = callPackage ./nix-directory.nix { };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue