freebsd.{libc,compat,include}: use no-libs stdenv

Previously, an attribute named isStatic did this, but this was lost in a
refactor. Revive it and rename it to noLibc to be more clear about its
intended use.
This commit is contained in:
Audrey Dutcher 2024-05-27 12:28:35 -07:00
parent ba5f1b4400
commit 61202561d9
4 changed files with 11 additions and 4 deletions

View File

@ -12,7 +12,7 @@
}:
mkDerivation {
isStatic = true;
noLibc = true;
path = "lib/csu";
extraPaths = [
"lib/Makefile.inc"

View File

@ -7,7 +7,7 @@
}:
mkDerivation {
isStatic = true;
noLibc = true;
path = "include";
extraPaths = [

View File

@ -21,7 +21,7 @@
}:
mkDerivation {
isStatic = true;
noLibc = true;
pname = "libc";
path = "lib/libc";
extraPaths =

View File

@ -2,6 +2,7 @@
lib,
stdenv,
stdenvNoCC,
stdenvNoLibs,
versionData,
writeText,
patches,
@ -21,7 +22,13 @@
lib.makeOverridable (
attrs:
let
stdenv' = if attrs.noCC or false then stdenvNoCC else stdenv;
stdenv' =
if attrs.noCC or false then
stdenvNoCC
else if attrs.noLibc or false then
stdenvNoLibs
else
stdenv;
in
stdenv'.mkDerivation (
rec {