libgpg-error: Enable cross-compilation
This commit is contained in:
parent
3655157d22
commit
4df330ea6e
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, gettext }:
|
{ stdenv, buildPackages, fetchurl, gettext }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libgpg-error-${version}";
|
name = "libgpg-error-${version}";
|
||||||
@ -16,6 +16,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# If architecture-dependent MO files aren't available, they're generated
|
# If architecture-dependent MO files aren't available, they're generated
|
||||||
# during build, so we need gettext for cross-builds.
|
# during build, so we need gettext for cross-builds.
|
||||||
|
crossAttrs.nativeBuildInputs = [ gettext buildPackages.stdenv.cc ];
|
||||||
crossAttrs.buildInputs = [ gettext ];
|
crossAttrs.buildInputs = [ gettext ];
|
||||||
|
|
||||||
postConfigure =
|
postConfigure =
|
||||||
@ -27,7 +28,7 @@ stdenv.mkDerivation rec {
|
|||||||
# Thus, re-run it with Bash.
|
# Thus, re-run it with Bash.
|
||||||
"${stdenv.shell} config.status";
|
"${stdenv.shell} config.status";
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://www.gnupg.org/related_software/libgpg-error/index.html;
|
homepage = https://www.gnupg.org/related_software/libgpg-error/index.html;
|
||||||
@ -45,4 +46,3 @@ stdenv.mkDerivation rec {
|
|||||||
maintainers = [ maintainers.fuuzetsu maintainers.vrthra ];
|
maintainers = [ maintainers.fuuzetsu maintainers.vrthra ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user