mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-30 17:49:58 +03:00
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 {
|
||||
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…
Reference in New Issue
Block a user