mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
7e49471316
the argument to optional should not be list
11 lines
401 B
Nix
11 lines
401 B
Nix
{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
|
|
'';
|
|
}
|