From af64bedaca73c660d6a3d0424981f9fe58ee9a52 Mon Sep 17 00:00:00 2001 From: Tomas Hlavaty Date: Tue, 9 Feb 2016 22:34:31 +0100 Subject: [PATCH 1/3] add armv7l-linux to mesaPlatforms --- lib/platforms.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/platforms.nix b/lib/platforms.nix index 750829da3751..5ac0b5287145 100644 --- a/lib/platforms.nix +++ b/lib/platforms.nix @@ -13,7 +13,7 @@ rec { all = linux ++ darwin ++ cygwin ++ freebsd ++ openbsd ++ netbsd ++ illumos; none = []; allBut = platforms: lists.filter (x: !(builtins.elem x platforms)) all; - mesaPlatforms = ["i686-linux" "x86_64-linux" "x86_64-darwin" "armv5tel-linux" "armv6l-linux"]; + mesaPlatforms = ["i686-linux" "x86_64-linux" "x86_64-darwin" "armv5tel-linux" "armv6l-linux" "armv7l-linux"]; x86_64 = ["x86_64-linux" "x86_64-darwin" "x86_64-freebsd" "x86_64-openbsd" "x86_64-netbsd" "x86_64-cygwin"]; i686 = ["i686-linux" "i686-freebsd" "i686-netbsd" "i686-cygwin"]; arm = ["armv5tel-linux" "armv6l-linux" "armv7l-linux" ]; From 976895c0d04b998a66853158ab312b9fda42d596 Mon Sep 17 00:00:00 2001 From: Tomas Hlavaty Date: Thu, 11 Feb 2016 09:33:42 +0100 Subject: [PATCH 2/3] mesa: remove broken dependency on libdrm_intel on armv7l-linux does this work for other arm systems or should it be applied for system.isArm? --- pkgs/development/libraries/mesa/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index c6af00d08b87..f2b53fc2e595 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -86,12 +86,16 @@ stdenv.mkDerivation { # TODO: Figure out how to enable opencl without having a runtime dependency on clang "--disable-opencl" - "--with-gallium-drivers=svga,i915,ilo,r300,r600,radeonsi,nouveau,freedreno,swrast" + (if "armv7l-linux" == stdenv.system + then null + else "--with-gallium-drivers=svga,i915,ilo,r300,r600,radeonsi,nouveau,freedreno,swrast") "--enable-shared-glapi" "--enable-sysfs" "--enable-driglx-direct" # seems enabled anyway "--enable-glx-tls" - "--with-dri-drivers=i915,i965,nouveau,radeon,r200,swrast" + (if "armv7l-linux" == stdenv.system + then "--with-dri-drivers=" + else "--with-dri-drivers=i915,i965,nouveau,radeon,r200,swrast") "--with-egl-platforms=x11,wayland,drm" "--enable-gallium-llvm" From 6c532624808336b853f31d27ef3309e6feab4ac1 Mon Sep 17 00:00:00 2001 From: Tomas Hlavaty Date: Sun, 14 Feb 2016 21:13:51 +0100 Subject: [PATCH 3/3] ImageMagick: build also on armv7l-linux --- pkgs/applications/graphics/ImageMagick/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/graphics/ImageMagick/default.nix b/pkgs/applications/graphics/ImageMagick/default.nix index 8fa86041414f..e75e86a4d533 100644 --- a/pkgs/applications/graphics/ImageMagick/default.nix +++ b/pkgs/applications/graphics/ImageMagick/default.nix @@ -7,6 +7,7 @@ let arch = if stdenv.system == "i686-linux" then "i686" else if stdenv.system == "x86_64-linux" || stdenv.system == "x86_64-darwin" then "x86-64" + else if stdenv.system == "armv7l-linux" then "armv7l" else throw "ImageMagick is not supported on this platform."; in