libgpg-error: Enable cross-compilation

wip/yesman
Ben Gamari 7 years ago committed by Will Dietz
parent 3655157d22
commit 4df330ea6e
  1. 6
      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 ];
};
}

Loading…
Cancel
Save