diff options
| author | Jules Aguillon | 2022-03-24 18:42:44 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2022-03-24 18:43:09 +0100 |
| commit | 0fb7150a0656c88abf278a3afd8021c1e6d2a04d (patch) | |
| tree | f224dc8b89ca651961f2894d9623c62dba181daf /shell.nix | |
| parent | f3aa218de40a44eeaf1e7ec169bb2b3d4da526ad (diff) | |
| download | unexpected-keyboard-0fb7150a0656c88abf278a3afd8021c1e6d2a04d.tar.gz unexpected-keyboard-0fb7150a0656c88abf278a3afd8021c1e6d2a04d.zip | |
Revert to the previous CI
The new CI script doesn't work on forks.
This reverts commit f3aa218de40a44eeaf1e7ec169bb2b3d4da526ad.
This reverts commit 3373c59b903cfcccedf31278f9f18ea305e3a567.
Diffstat (limited to 'shell.nix')
| -rw-r--r-- | shell.nix | 32 |
1 files changed, 8 insertions, 24 deletions
@@ -1,35 +1,19 @@ { pkgs ? import <nixpkgs> { - config.android_sdk.accept_license = true; - config.allowUnfree = true; -} }: + config.android_sdk.accept_license = true; + config.allowUnfree = true; + } }: let + jdk = pkgs.openjdk8; + android = pkgs.androidenv.composeAndroidPackages { buildToolsVersions = [ "30.0.3" ]; platformVersions = [ "30" ]; abiVersions = [ "armeabi-v7a" ]; }; - buildInputs = - [ pkgs.findutils pkgs.openjdk8 android.androidsdk pkgs.fontforge ]; - - # Env variable required by the Makefile +in +pkgs.mkShell { + buildInputs = [ pkgs.findutils jdk android.androidsdk pkgs.fontforge ]; ANDROID_HOME = "${android.androidsdk}/libexec/android-sdk"; - - # Build the debug APK. Exposed as an attribute, used in CI - debug-apk = pkgs.stdenv.mkDerivation { - name = "unexpected-keyboard-debug"; - src = ./.; - inherit buildInputs ANDROID_HOME; - buildPhase = '' - make - ''; - installPhase = '' - mkdir -p $out - mv _build/*.apk $out - ''; - }; - -in pkgs.mkShell { inherit buildInputs ANDROID_HOME; } // { - inherit debug-apk; } |
