-
-
Save numinit/3c1c07f9d5c7200611b8d97cdf700226 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
importOverride = path: replacements: | |
builtins.scopedImport { | |
import = importPath: | |
if builtins.hasAttr (builtins.baseNameOf importPath) replacements then | |
builtins.scopedImport {} (builtins.getAttr (builtins.baseNameOf importPath) replacements) | |
else | |
importOverride importPath replacements; | |
} path; | |
androidEnvOverride = importOverride <nixpkgs/pkgs/development/mobile/androidenv> { | |
"packages.nix" = /path/to/my/replacement/packages.nix; | |
}; | |
androidEnv = callPackage androidEnvOverride { | |
licenseAccepted = true; | |
}; | |
in | |
rec { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment