Reintroduce licenseAccepted option
This commit is contained in:
parent
b99ac1c904
commit
3bfd3e73bf
3 changed files with 11 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
{stdenv, fetchurl, requireFile, makeWrapper, unzip, autoPatchelfHook, pkgs, pkgs_i686}:
|
||||
{stdenv, fetchurl, requireFile, makeWrapper, unzip, autoPatchelfHook, pkgs, pkgs_i686, licenseAccepted ? false}:
|
||||
|
||||
{ toolsVersion ? "25.2.5"
|
||||
, platformToolsVersion ? "28.0.1"
|
||||
|
@ -20,6 +20,13 @@
|
|||
, includeExtras ? []
|
||||
}:
|
||||
|
||||
if !licenseAccepted then throw ''
|
||||
You must accept the Android Software Development Kit License Agreement at
|
||||
https://developer.android.com/studio/terms
|
||||
by setting nixpkgs config option 'android_sdk.accept_license = true;'
|
||||
''
|
||||
else assert licenseAccepted;
|
||||
|
||||
let
|
||||
inherit (pkgs) stdenv fetchurl makeWrapper unzip;
|
||||
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
{ pkgs ? import <nixpkgs> {}
|
||||
, pkgs_i686 ? import <nixpkgs> { system = "i686-linux"; }
|
||||
, licenseAccepted ? false
|
||||
}:
|
||||
|
||||
rec {
|
||||
composeAndroidPackages = import ./compose-android-packages.nix {
|
||||
inherit (pkgs) stdenv fetchurl requireFile makeWrapper unzip autoPatchelfHook;
|
||||
inherit pkgs pkgs_i686;
|
||||
inherit pkgs pkgs_i686 licenseAccepted;
|
||||
};
|
||||
|
||||
buildApp = import ./build-app.nix {
|
||||
|
|
|
@ -831,7 +831,7 @@ in
|
|||
|
||||
androidenv = callPackage ../development/mobile/androidenv {
|
||||
pkgs_i686 = pkgsi686Linux;
|
||||
#licenseAccepted = (config.android_sdk.accept_license or false);
|
||||
licenseAccepted = config.android_sdk.accept_license or false;
|
||||
};
|
||||
|
||||
androidndkPkgs = androidndkPkgs_17c;
|
||||
|
|
Loading…
Reference in a new issue