1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-27 01:44:41 +03:00

android-headers: inits at 23.

This commit is contained in:
Samuel Dionne-Riel 2018-07-06 22:43:03 -04:00
parent 44ab8fe3ed
commit c6c8eb9f18
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{
stdenvNoCC
, fetchgit
}:
let
version = "23";
in
stdenvNoCC.mkDerivation {
inherit version;
name = "android-headers";
src = fetchgit {
url = https://git.launchpad.net/android-headers;
rev = "957ab6e28aea03d0cf6495f33ade9ddfff480ccc";
sha256 = "1ma872lq46qqpfvc3x9hlcs28w7vbaaf6k5p9v114h92qsza3cm0";
};
installPhase = ''
mkdir -p $out/include/
cp -prf ${version} $out/include/android
(
cd $out/include
ln -s android android-${version}
)
'';
}

View File

@ -6,6 +6,7 @@ in
{
# Misc. tools.
# Keep sorted.
android-headers = callPackage ./android-headers { };
dtbTool = callPackage ./dtbtool { };
hard-reboot = callPackage ./misc/hard-reboot.nix { };
mkbootimg = callPackage ./mkbootimg { };