5 makeScopeWithSplicing',
6 generateSplicesForMkScope,
12 otherSplices = generateSplicesForMkScope "netbsd";
13 buildNetbsd = otherSplices.selfBuildHost;
16 makeScopeWithSplicing' {
20 lib.packagesFromDirectoryRecursive {
21 callPackage = self.callPackage;
30 stdenvNoCC.hostPlatform.gcc.float or (stdenvNoCC.hostPlatform.parsed.abi.float or "hard") == "soft"
38 compatIfNeeded = lib.optional (!stdenvNoCC.hostPlatform.isNetBSD) self.compat;
40 stdenvLibcMinimal = stdenvNoLibc.override (old: {
41 cc = old.cc.override {
42 libc = self.libcMinimal;
44 bintools = old.cc.bintools.override {
45 libc = self.libcMinimal;
47 sharedLibraryLoader = null;
52 # The manual callPackages below should in principle be unnecessary because
53 # they're just selecting arguments that would be selected anyway. However,
54 # if we don't perform these manual calls, we get infinite recursion issues
55 # because of the splices.
57 compat = self.callPackage ./pkgs/compat/package.nix {
58 inherit (buildPackages) coreutils;
59 inherit (buildNetbsd) makeMinimal;
60 inherit (self) install;
63 config = self.callPackage ./pkgs/config.nix {
64 inherit (buildNetbsd) makeMinimal install;
68 csu = self.callPackage ./pkgs/csu.nix {
69 inherit (self) headers sys-headers ld_elf_so;
82 include = self.callPackage ./pkgs/include.nix {
89 inherit (buildPackages) stdenv;
92 install = self.callPackage ./pkgs/install/package.nix {
99 inherit (buildNetbsd) makeMinimal;
102 libcMinimal = self.callPackage ./pkgs/libcMinimal/package.nix {
103 inherit (self) headers csu;
104 inherit (buildNetbsd)
117 libpthread-headers = self.callPackage ./pkgs/libpthread/headers.nix { };
119 librpcsvc = self.callPackage ./pkgs/librpcsvc.nix {
120 inherit (buildNetbsd)
131 libutil = self.callPackage ./pkgs/libutil.nix {
132 inherit (buildNetbsd)
142 lorder = self.callPackage ./pkgs/lorder.nix { inherit (buildNetbsd) makeMinimal install; };
144 mtree = self.callPackage ./pkgs/mtree.nix { inherit (self) mknod; };
146 mkDerivation = self.callPackage ./pkgs/mkDerivation.nix {
147 inherit (buildNetbsd)
154 inherit (buildPackages) mandoc;
155 inherit (buildPackages.buildPackages) rsync;
158 makeMinimal = self.callPackage ./pkgs/makeMinimal.nix { inherit (self) make; };
160 # See note in pkgs/stat/package.nix
161 stat = self.callPackage ./pkgs/stat/package.nix { inherit (buildNetbsd) makeMinimal install; };
163 # See note in pkgs/stat/hook.nix
164 statHook = self.callPackage ./pkgs/stat/hook.nix { inherit (self) stat; };
166 sys-headers = self.callPackage ./pkgs/sys/headers.nix {
167 inherit (buildNetbsd)
179 tsort = self.callPackage ./pkgs/tsort.nix { inherit (buildNetbsd) makeMinimal install; };