fix environment variables

This commit is contained in:
Alya Sirko 2022-08-28 00:08:28 +03:00
parent 58b3c08b9f
commit 74b52b317b
2 changed files with 5 additions and 5 deletions

View file

@ -6,13 +6,13 @@ steps:
- name: build - name: build
commands: commands:
- nix-shell --pure --run "flutter build apk --split-per-abi" - 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 - name: deploy
commands: commands:
- scp build/app/outputs/apk/release/*.apk 10.0.0.3:/var/lib/fdroid/repo - 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: node:
server: builder server: builder

View file

@ -9,7 +9,7 @@ let
}; };
in in
pkgs.mkShell { pkgs.mkShell {
ANDROID_HOME= "${androidComposition.androidsdk}/libexec/android-sdk"; ANDROID_HOME = "${androidComposition.androidsdk}/libexec/android-sdk";
ANDROID_SDK_ROOT = "${androidComposition.androidsdk}/libexec/android-sdk"; ANDROID_SDK_ROOT = "${androidComposition.androidsdk}/libexec/android-sdk";
nativeBuildInputs = with pkgs; [ flutter openjdk11_headless ]; nativeBuildInputs = with pkgs; [ flutter openjdk11_headless ];
} }