blob: 79acca606d14b9d49b509c58426eda5641cbe3f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
deployAndroidPackage,
lib,
package,
os,
arch,
autoPatchelfHook,
makeWrapper,
pkgs,
meta,
}:
deployAndroidPackage {
inherit package os arch;
nativeBuildInputs = [ makeWrapper ] ++ lib.optionals (os == "linux") [ autoPatchelfHook ];
buildInputs = lib.optionals (os == "linux") (
with pkgs;
[
llvmPackages.libcxx
SDL2
]
);
patchInstructions = lib.optionalString (os == "linux") ''
autoPatchelf --no-recurse $packageBaseDir
if [ -f $PWD/desktop-head-unit ]; then
echo "desktop-head-unit exists"
wrapProgram $PWD/desktop-head-unit \
--prefix LD_LIBRARY_PATH : ${
lib.makeLibraryPath (
with pkgs;
[
libx11
libxrandr
]
)
}
fi
'';
inherit meta;
}
|