linuxPackages.anbox: init at 2018-09-08

Co-authored-by: Luke Adams <luke.adams@belljar.io>
Co-authored-by: Volth <volth@webmaster.ms>
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
Co-authored-by: Edward Tjörnhammar <ed@cflags.cc>
Co-authored-by: Gabriel Ebner <gebner@gebner.org>
wip/yesman
Edward Tjörnhammar 6 years ago committed by Gabriel Ebner
parent ff43f0a7b5
commit dfa314c382
  1. 43
      pkgs/os-specific/linux/anbox/kmod.nix
  2. 2
      pkgs/top-level/all-packages.nix

@ -0,0 +1,43 @@
{ stdenv, lib, kernel, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "anbox-modules";
version = "2018-09-08-" + kernel.version;
src = fetchFromGitHub {
owner = "anbox";
repo = "anbox-modules";
rev = "27fd47e11ef6eef93738f8f3df3e42c88975544e";
sha256 = "1hnf5x5swjcws6mnxmd3byll8l7qsxxj9pgki2k31rbmqqf2sb0x";
};
nativeBuildInputs = kernel.moduleBuildDependencies;
KERNEL_SRC="${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
buildPhase = ''
for d in ashmem binder;do
cd $d
make
cd -
done
'';
installPhase = ''
modDir=$out/lib/modules/${kernel.modDirVersion}/kernel/updates/
mkdir -p $modDir
for d in ashmem binder;do
mv $d/$d*.ko $modDir/.
done
'';
meta = with stdenv.lib; {
description = "Anbox ashmem and binder drivers.";
homepage = https://github.com/anbox/anbox-modules;
license = licenses.gpl2;
platforms = platforms.linux;
broken = (versionOlder kernel.version "4.4") || (kernel.features.grsecurity);
maintainers = with maintainers; [ edwtjo ];
};
}

@ -14762,6 +14762,8 @@ in
amdgpu-pro = callPackage ../os-specific/linux/amdgpu-pro { };
anbox = callPackage ../os-specific/linux/anbox/kmod.nix { };
batman_adv = callPackage ../os-specific/linux/batman-adv {};
bcc = callPackage ../os-specific/linux/bcc {

Loading…
Cancel
Save