diff options
author | Rick van Schijndel <rol3517@gmail.com> | 2022-05-05 08:31:55 +0200 |
---|---|---|
committer | Rick van Schijndel <rol3517@gmail.com> | 2022-05-05 22:27:35 +0200 |
commit | bf64063fc306010857fccbf84a584544351a4621 (patch) | |
tree | fac0b06919f974e966aa96752c4c70e4f7ee5039 | |
parent | f02b987754585aa2162972f91734a52c222ea279 (diff) | |
download | nixpkgs-bf64063fc306010857fccbf84a584544351a4621.tar nixpkgs-bf64063fc306010857fccbf84a584544351a4621.tar.gz nixpkgs-bf64063fc306010857fccbf84a584544351a4621.tar.bz2 nixpkgs-bf64063fc306010857fccbf84a584544351a4621.tar.lz nixpkgs-bf64063fc306010857fccbf84a584544351a4621.tar.xz nixpkgs-bf64063fc306010857fccbf84a584544351a4621.tar.zst nixpkgs-bf64063fc306010857fccbf84a584544351a4621.zip |
libqrtr-glib: only enable gtk-doc when not cross-compiling
Otherwise this error is shown when cross-compiling: configure: WARNING: You will not be able to create source packages with 'make dist' because gtk-doc >= 1.0 is not found. checking for gtkdoc-check... gtkdoc-check.test checking for gtkdoc-check... /nix/store/c54j3jcj3cijg9kf54lcr94lsc09xd4r-gtk-doc-1.33.2/bin/gtkdoc-check checking for gtkdoc-rebase... /nix/store/c54j3jcj3cijg9kf54lcr94lsc09xd4r-gtk-doc-1.33.2/bin/gtkdoc-rebase checking for gtkdoc-mkpdf... /nix/store/c54j3jcj3cijg9kf54lcr94lsc09xd4r-gtk-doc-1.33.2/bin/gtkdoc-mkpdf checking whether to build gtk-doc documentation... yes configure: error: You must have gtk-doc >= 1.0 installed to build documentation for libqrtr-glib. Please install gtk-doc or disable building the documentation by adding '--disable-gtk-doc' to './configure'. Also enable strictDeps to prevent future issues.
-rw-r--r-- | pkgs/development/libraries/libqrtr-glib/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libqrtr-glib/default.nix b/pkgs/development/libraries/libqrtr-glib/default.nix index 29097710a69..aefc61f1ccf 100644 --- a/pkgs/development/libraries/libqrtr-glib/default.nix +++ b/pkgs/development/libraries/libqrtr-glib/default.nix @@ -20,6 +20,12 @@ stdenv.mkDerivation rec { sha256 = "MNh5sq3m+PRh3vOmd3VdtcAji6v2iNXIPAOz5qvjXO4="; }; + strictDeps = true; + + depsBuildBuild = [ + pkg-config + ]; + nativeBuildInputs = [ pkg-config gobject-introspection @@ -32,7 +38,7 @@ stdenv.mkDerivation rec { glib ]; - configureFlags = [ + configureFlags = lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "--enable-gtk-doc" ]; |