diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-11-03 16:55:36 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2022-01-06 14:22:07 +0000 |
commit | 2b9c5958a10affa63551166c281bcd36ea021674 (patch) | |
tree | 08c0b83ab670e7dc8fa298d8068b3352d9484c4b /pkgs/os-specific/bsd | |
parent | 7be5fbf70fdc995034b2658bd814cfa45dfddc9a (diff) | |
download | nixpkgs-2b9c5958a10affa63551166c281bcd36ea021674.tar nixpkgs-2b9c5958a10affa63551166c281bcd36ea021674.tar.gz nixpkgs-2b9c5958a10affa63551166c281bcd36ea021674.tar.bz2 nixpkgs-2b9c5958a10affa63551166c281bcd36ea021674.tar.lz nixpkgs-2b9c5958a10affa63551166c281bcd36ea021674.tar.xz nixpkgs-2b9c5958a10affa63551166c281bcd36ea021674.tar.zst nixpkgs-2b9c5958a10affa63551166c281bcd36ea021674.zip |
netbsd.compat: don't use musl's sys/cdefs.h
When building glib statically, a Meson check would fail, because the check would interpret any warning as failure, and it would see the warning that the musl sys/cdefs.h emits about the file being deprecated.
Diffstat (limited to 'pkgs/os-specific/bsd')
-rw-r--r-- | pkgs/os-specific/bsd/netbsd/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/os-specific/bsd/netbsd/default.nix b/pkgs/os-specific/bsd/netbsd/default.nix index 7a6604afe64..25ac9ce451c 100644 --- a/pkgs/os-specific/bsd/netbsd/default.nix +++ b/pkgs/os-specific/bsd/netbsd/default.nix @@ -192,6 +192,12 @@ in lib.makeScopeWithSplicing configurePlatforms = [ "build" "host" ]; configureFlags = [ "--cache-file=config.cache" + ] ++ lib.optionals stdenv.hostPlatform.isMusl [ + # We include this header in our musl package only for legacy + # compatibility, and compat works fine without it (and having it + # know about sys/cdefs.h breaks packages like glib when built + # statically). + "ac_cv_header_sys_cdefs_h=no" ]; nativeBuildInputs = with buildPackages.netbsd; commonDeps ++ [ |