8 skawarePackages.buildPackage {
11 sha256 = "sha256-oUqlWMmwmwYvoWrOxiOyyPk9afXLpNB/bQxYkTBmxCc=";
13 description = "Set of general-purpose C programming libraries";
24 # assume /dev/random works
26 "--libdir=\${lib}/lib"
27 "--dynlibdir=\${lib}/lib"
28 "--includedir=\${dev}/include"
29 "--sysdepdir=\${lib}/lib/skalibs/sysdeps"
30 # Empty the default path, which would be "/usr/bin:bin".
31 # It would be set when PATH is empty. This hurts hermeticity.
32 "--with-default-path="
35 ++ lib.optionals (stdenv.buildPlatform.config != stdenv.hostPlatform.config) [
36 # ./configure: sysdep posixspawnearlyreturn cannot be autodetected
37 # when cross-compiling. Please manually provide a value with the
38 # --with-sysdep-posixspawnearlyreturn=yes|no|... option.
40 # posixspawnearlyreturn: `yes` if the target has a broken
41 # `posix_spawn()` implementation that can return before the
42 # child has successfully exec'ed. That happens with old glibcs
43 # and some virtual platforms.
44 "--with-sysdep-posixspawnearlyreturn=no"
51 mv doc $doc/share/doc/skalibs/html
55 # fdtools is one of the few non-skalib packages that depends on skalibs
56 # and might break if skalibs gets an breaking update.
57 fdtools = pkgs.fdtools;