From 74b52b317b7530c8215e3ed2bc440d29aa21414d Mon Sep 17 00:00:00 2001 From: Alya Sirko Date: Sun, 28 Aug 2022 00:08:28 +0300 Subject: [PATCH] fix environment variables --- .drone.yml | 8 ++++---- shell.nix | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 35ee1961..135e6378 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,13 +6,13 @@ steps: - name: build commands: - nix-shell --pure --run "flutter build apk --split-per-abi" + environment: + NIX_PATH: "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:unstable=/nix/var/nix/profiles/per-user/root/channels/unstable" + NIXPKGS_ALLOW_UNFREE: 1 + - name: deploy commands: - scp build/app/outputs/apk/release/*.apk 10.0.0.3:/var/lib/fdroid/repo -environment: - NIX_PATH: "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:unstable=/nix/var/nix/profiles/per-user/root/channels/unstable" - NIXPKGS_ALLOW_UNFREE: 1 - node: server: builder diff --git a/shell.nix b/shell.nix index 6ff05a0d..da57151a 100644 --- a/shell.nix +++ b/shell.nix @@ -9,7 +9,7 @@ let }; in pkgs.mkShell { - ANDROID_HOME= "${androidComposition.androidsdk}/libexec/android-sdk"; + ANDROID_HOME = "${androidComposition.androidsdk}/libexec/android-sdk"; ANDROID_SDK_ROOT = "${androidComposition.androidsdk}/libexec/android-sdk"; nativeBuildInputs = with pkgs; [ flutter openjdk11_headless ]; }