From acf1ae02dcaee644704a12866c434eee2a6a5a65 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sun, 22 Oct 2017 23:43:56 +0300 Subject: [PATCH] libx86: Supports only x86 In theory it builds for 32-bit ARM but the result probably doesn't work in a meaningful manner... --- pkgs/development/libraries/libx86/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libx86/default.nix b/pkgs/development/libraries/libx86/default.nix index 162d284f4029..d73d67a39cf2 100644 --- a/pkgs/development/libraries/libx86/default.nix +++ b/pkgs/development/libraries/libx86/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { # http://www.mail-archive.com/suspend-devel@lists.sourceforge.net/msg02355.html makeFlags = [ "DESTDIR=$(out)" - ] ++ stdenv.lib.optional (stdenv.isx86_64 || stdenv.isArm) "BACKEND=x86emu"; + ] ++ stdenv.lib.optional (!stdenv.isi686) "BACKEND=x86emu"; preBuild = '' sed -i lrmi.c -e 's@defined(__i386__)@(defined(__i386__) || defined(__x86_64__))@' @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { meta = with stdenv.lib; { description = "Real-mode x86 code emulator"; maintainers = with maintainers; [ raskin ]; - platforms = with platforms; linux ++ freebsd ++ netbsd; + platforms = [ "x86_64-linux" "i686-linux" ]; license = licenses.mit; }; }