nixpkgs/pkgs/os-specific/linux/v86d/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1002 B
Nix
Raw Normal View History

2021-09-19 18:08:01 +03:00
{ lib
, stdenv
, fetchFromGitHub
, kernel
, klibc
2015-04-26 00:36:56 +03:00
}:
let
pversion = "0.1.10";
in stdenv.mkDerivation rec {
pname = "v86d";
version = "${pversion}-${kernel.version}";
2021-09-19 18:08:01 +03:00
src = fetchFromGitHub {
owner = "mjanusz";
repo = "v86d";
rev = "v86d-${pversion}";
2021-09-19 18:08:01 +03:00
hash = "sha256-95LRzVbO/DyddmPwQNNQ290tasCGoQk7FDHlst6LkbA=";
};
2015-04-26 00:36:56 +03:00
patchPhase = ''
patchShebangs configure
'';
2015-04-26 00:36:56 +03:00
configureFlags = [ "--with-klibc" "--with-x86emu" ];
hardeningDisable = [ "stackprotector" ];
makeFlags = [
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/source"
"DESTDIR=$(out)"
];
2015-04-26 00:36:56 +03:00
configurePhase = ''
./configure $configureFlags
'';
buildInputs = [ klibc ];
meta = with lib; {
2015-04-26 00:36:56 +03:00
description = "A daemon to run x86 code in an emulated environment";
mainProgram = "v86d";
homepage = "https://github.com/mjanusz/v86d";
2015-04-26 00:36:56 +03:00
license = licenses.gpl2;
maintainers = with maintainers; [ codyopel ];
platforms = [ "i686-linux" "x86_64-linux" ];
};
}