sc2-headless: move defaults to package file

This commit is contained in:
Jan Malakhovski 2019-02-03 15:33:29 +00:00
parent a111b5fde4
commit c7675be3c1
2 changed files with 3 additions and 5 deletions

View File

@ -1,9 +1,9 @@
{ stdenv
{ config, stdenv
, callPackage
, lib
, fetchurl
, unzip
, licenseAccepted ? false
, licenseAccepted ? config.sc2-headless.accept_license or false
}:
if !licenseAccepted then throw ''

View File

@ -21536,9 +21536,7 @@ in
### SCIENCE/MACHINE LEARNING
sc2-headless = callPackage ../applications/science/machine-learning/sc2-headless {
licenseAccepted = (config.sc2-headless.accept_license or false);
};
sc2-headless = callPackage ../applications/science/machine-learning/sc2-headless { };
### SCIENCE/MATH