10 in stdenv.mkDerivation rec {
12 version = "${pversion}-${kernel.version}";
14 src = fetchFromGitHub {
17 rev = "v86d-${pversion}";
18 hash = "sha256-95LRzVbO/DyddmPwQNNQ290tasCGoQk7FDHlst6LkbA=";
22 patchShebangs configure
25 configureFlags = [ "--with-klibc" "--with-x86emu" ];
27 hardeningDisable = [ "stackprotector" ];
30 "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/source"
35 ./configure $configureFlags
38 buildInputs = [ klibc ];
41 description = "Daemon to run x86 code in an emulated environment";
43 homepage = "https://github.com/mjanusz/v86d";
44 license = licenses.gpl2Only;
45 maintainers = with maintainers; [ codyopel ];
46 platforms = [ "i686-linux" "x86_64-linux" ];