about summary refs log tree commit diff
path: root/pkgs/development/mobile/androidenv/cmake.nix
blob: 7df24ad4cc2230ea00381bc30b25355a78b3552a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
{deployAndroidPackage, lib, package, os, autoPatchelfHook, pkgs, stdenv}:

deployAndroidPackage {
  inherit package os;
  nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook ];
  buildInputs = lib.optionals (os == "linux") [ pkgs.stdenv.cc.libc pkgs.stdenv.cc.cc pkgs.ncurses5 ];
  patchInstructions = lib.optionalString (os == "linux") ''
    autoPatchelf $packageBaseDir/bin
  '';
}