mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46: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;
|
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
|
||||||
|
|
|
||||||
|
|
@ -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 { };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue