+19
-3
pkgs/tools/misc/thin-provisioning-tools/default.nix
+19
-3
pkgs/tools/misc/thin-provisioning-tools/default.nix
···
···+# a) Fix build if limits.h provides definition for PAGE_SIZE, as musl does w/musl per XSI[1] although it's apparently optional [2].+# This value is only provided when it's known to be a constant, to avoid the need to discover the value dynamically.+# b) If not using system-provided (kernel headers, or libc headers, or something) use the POSIX approach of querying the value+# dynamically using sysconf(_SC_PAGE_SIZE) instead of hardcoded value that hopefully is correct.+url = "https://raw.githubusercontent.com/voidlinux/void-packages/a0ece13ad7ab2aae760e09e41e0459bd999a3695/srcpkgs/thin-provisioning-tools/patches/musl.patch";