about summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorTaeer Bar-Yam <taeer@bar-yam.me>2021-04-20 22:27:09 -0400
committerTaeer Bar-Yam <taeer@bar-yam.me>2021-04-20 22:27:09 -0400
commit951704afafdc2ccb1508718d02e2300ad7cf12ec (patch)
tree807af060d973d359b3a1b0793e7d1700df5c2dd7 /pkgs/development/libraries
parentbb9d0c30384520aae074d5d43ec1d9e3cdb181eb (diff)
libconfig: fix cross-compile to windows
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/libconfig/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libconfig/default.nix b/pkgs/development/libraries/libconfig/default.nix
index ae5f117646334..7387e9edc5b50 100644
--- a/pkgs/development/libraries/libconfig/default.nix
+++ b/pkgs/development/libraries/libconfig/default.nix
@@ -11,11 +11,13 @@ stdenv.mkDerivation rec {
 
   doCheck = true;
 
+  configureFlags = lib.optional stdenv.targetPlatform.isWindows "--disable-examples";
+
   meta = with lib; {
     homepage = "http://www.hyperrealm.com/libconfig";
     description = "A simple library for processing structured configuration files";
     license = licenses.lgpl3;
     maintainers = [ maintainers.goibhniu ];
-    platforms = platforms.linux ++ platforms.darwin;
+    platforms = with platforms; linux ++ darwin ++ windows;
   };
 }