···314314 '') plugins}
315315 ''; # */
316316317317+ cmdline-tools-package = check-version packages "cmdline-tools" cmdLineToolsVersion;
318318+317319 # This derivation deploys the tools package and symlinks all the desired
318320 # plugins that we want to use. If the license isn't accepted, prints all the licenses
319321 # requested and throws.
···329331 by an environment variable for a single invocation of the nix tools.
330332 $ export NIXPKGS_ACCEPT_ANDROID_SDK_LICENSE=1
331333 '' else callPackage ./cmdline-tools.nix {
332332- inherit deployAndroidPackage os cmdLineToolsVersion;
334334+ inherit deployAndroidPackage os;
333335334334- package = check-version packages "cmdline-tools" cmdLineToolsVersion;
336336+ package = cmdline-tools-package;
335337336338 postInstall = ''
337339 # Symlink all requested plugins
···375377 ln -s $i $out/bin
376378 done
377379378378- find $ANDROID_SDK_ROOT/cmdline-tools/${cmdLineToolsVersion}/bin -type f -executable | while read i; do
380380+ find $ANDROID_SDK_ROOT/${cmdline-tools-package.path}/bin -type f -executable | while read i; do
379381 ln -s $i $out/bin
380382 done
381383