1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/os-specific/linux/v86d/default.nix

41 lines
941 B
Nix
Raw Normal View History

2015-04-25 22:36:56 +01:00
{ stdenv, fetchurl
, kernel, klibc
}:
stdenv.mkDerivation rec {
name = "v86d-${version}-${kernel.version}";
2013-01-15 15:42:29 +00:00
version = "0.1.10";
src = fetchurl {
2015-04-25 22:36:56 +01:00
url = "https://github.com/mjanusz/v86d/archive/v86d-${version}.tar.gz";
sha256 = "1flnpp8rc945cxr6jr9dlm8mi8gr181zrp2say4269602s1a4ymg";
};
2015-04-25 22:36:56 +01:00
patchPhase = ''
patchShebangs configure
'';
2015-04-25 22:36:56 +01:00
configureFlags = [ "--with-klibc" "--with-x86emu" ];
hardeningDisable = [ "stackprotector" ];
makeFlags = [
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/source"
"DESTDIR=$(out)"
];
2015-04-25 22:36:56 +01:00
configurePhase = ''
./configure $configureFlags
'';
buildInputs = [ klibc ];
meta = with stdenv.lib; {
description = "A daemon to run x86 code in an emulated environment";
homepage = https://github.com/mjanusz/v86d;
license = licenses.gpl2;
maintainers = with maintainers; [ codyopel ];
platforms = [ "i686-linux" "x86_64-linux" ];
};
}