summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2017-10-17 16:40:51 -0400
committerWill Dietz <w@wdtz.org>2018-01-24 09:33:36 -0600
commit4df330ea6e6a4b5b6882781b1c1b5f87e67d8300 (patch)
treefbc8e75d93ab27efaf95429921ef1fdfe96a2f51
parent3655157d2249795b0f09f77fc82624f668dc36df (diff)
downloadnixlib-4df330ea6e6a4b5b6882781b1c1b5f87e67d8300.tar
nixlib-4df330ea6e6a4b5b6882781b1c1b5f87e67d8300.tar.gz
nixlib-4df330ea6e6a4b5b6882781b1c1b5f87e67d8300.tar.bz2
nixlib-4df330ea6e6a4b5b6882781b1c1b5f87e67d8300.tar.lz
nixlib-4df330ea6e6a4b5b6882781b1c1b5f87e67d8300.tar.xz
nixlib-4df330ea6e6a4b5b6882781b1c1b5f87e67d8300.tar.zst
nixlib-4df330ea6e6a4b5b6882781b1c1b5f87e67d8300.zip
libgpg-error: Enable cross-compilation
-rw-r--r--pkgs/development/libraries/libgpg-error/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/libraries/libgpg-error/default.nix b/pkgs/development/libraries/libgpg-error/default.nix
index 56bf9b177b56..4771e229d831 100644
--- a/pkgs/development/libraries/libgpg-error/default.nix
+++ b/pkgs/development/libraries/libgpg-error/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, gettext }:
+{ stdenv, buildPackages, fetchurl, gettext }:
 
 stdenv.mkDerivation rec {
   name = "libgpg-error-${version}";
@@ -16,6 +16,7 @@ stdenv.mkDerivation rec {
 
   # If architecture-dependent MO files aren't available, they're generated
   # during build, so we need gettext for cross-builds.
+  crossAttrs.nativeBuildInputs = [ gettext buildPackages.stdenv.cc ];
   crossAttrs.buildInputs = [ gettext ];
 
   postConfigure =
@@ -27,7 +28,7 @@ stdenv.mkDerivation rec {
     # Thus, re-run it with Bash.
       "${stdenv.shell} config.status";
 
-  doCheck = true;
+  doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
 
   meta = with stdenv.lib; {
     homepage = https://www.gnupg.org/related_software/libgpg-error/index.html;
@@ -45,4 +46,3 @@ stdenv.mkDerivation rec {
     maintainers = [ maintainers.fuuzetsu maintainers.vrthra ];
   };
 }
-