7 stdenv.mkDerivation rec {
11 url = "https://www.codon.org.uk/~mjg59/libx86/downloads/${pname}-${version}.tar.gz";
12 sha256 = "0j6h6bc02c6qi0q7c1ncraz4d1hkm5936r35rfsp4x1jrc233wav";
19 # using BACKEND=x86emu on 64bit systems fixes:
20 # http://www.mail-archive.com/suspend-devel@lists.sourceforge.net/msg02355.html
23 ] ++ lib.optional (!stdenv.hostPlatform.isi686) "BACKEND=x86emu";
26 sed -i lrmi.c -e 's@defined(__i386__)@(defined(__i386__) || defined(__x86_64__))@'
27 sed -e s@/usr@@ -i Makefile
30 env = lib.optionalAttrs stdenv.cc.isGNU {
31 NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
35 description = "Real-mode x86 code emulator";
36 maintainers = with maintainers; [ raskin ];
41 license = licenses.mit;