at 23.11-beta 47 lines 976 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, kernel 5, klibc 6}: 7 8let 9 pversion = "0.1.10"; 10in stdenv.mkDerivation rec { 11 pname = "v86d"; 12 version = "${pversion}-${kernel.version}"; 13 14 src = fetchFromGitHub { 15 owner = "mjanusz"; 16 repo = "v86d"; 17 rev = "v86d-${pversion}"; 18 hash = "sha256-95LRzVbO/DyddmPwQNNQ290tasCGoQk7FDHlst6LkbA="; 19 }; 20 21 patchPhase = '' 22 patchShebangs configure 23 ''; 24 25 configureFlags = [ "--with-klibc" "--with-x86emu" ]; 26 27 hardeningDisable = [ "stackprotector" ]; 28 29 makeFlags = [ 30 "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/source" 31 "DESTDIR=$(out)" 32 ]; 33 34 configurePhase = '' 35 ./configure $configureFlags 36 ''; 37 38 buildInputs = [ klibc ]; 39 40 meta = with lib; { 41 description = "A daemon to run x86 code in an emulated environment"; 42 homepage = "https://github.com/mjanusz/v86d"; 43 license = licenses.gpl2; 44 maintainers = with maintainers; [ codyopel ]; 45 platforms = [ "i686-linux" "x86_64-linux" ]; 46 }; 47}