nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 39 lines 922 B view raw
1{ 2 callPackage, 3 lib, 4 stdenv, 5 meta, 6}: 7let 8 examples-shell = callPackage ./examples/shell.nix { licenseAccepted = true; }; 9 examples-shell-with-emulator = callPackage ./examples/shell-with-emulator.nix { 10 licenseAccepted = true; 11 }; 12 examples-shell-without-emulator = callPackage ./examples/shell-without-emulator.nix { 13 licenseAccepted = true; 14 }; 15 all-tests = 16 examples-shell.passthru.tests 17 // (examples-shell-with-emulator.passthru.tests // examples-shell-without-emulator.passthru.tests); 18in 19stdenv.mkDerivation { 20 name = "androidenv-test-suite"; 21 version = "1"; 22 buildInputs = lib.mapAttrsToList (name: value: value) all-tests; 23 24 buildCommand = '' 25 touch $out 26 ''; 27 28 passthru.tests = all-tests; 29 30 passthru.updateScript = { 31 command = [ ./update.rb ]; 32 attrPath = "androidenv.test-suite"; 33 supportedFeatures = [ "commit" ]; 34 }; 35 36 meta = meta // { 37 timeout = 60; 38 }; 39}