11{
22 lib ,
3+ crossLibcStdenv ,
4+ stdenvNoCC ,
35 makeScopeWithSplicing' ,
46 generateSplicesForMkScope ,
57 buildPackages ,
@@ -19,32 +21,71 @@ makeScopeWithSplicing' {
1921 directory = ./pkgs ;
2022 }
2123 // {
22- libc = self . callPackage ./pkgs/libc/package.nix {
24+ version = "7.5" ;
25+
26+ stdenvLibcMinimal = crossLibcStdenv . override ( old : {
27+ cc = old . cc . override {
28+ libc = self . libcMinimal ;
29+ noLibc = false ;
30+ bintools = old . cc . bintools . override {
31+ libc = self . libcMinimal ;
32+ noLibc = false ;
33+ sharedLibraryLoader = null ;
34+ } ;
35+ } ;
36+ } ) ;
37+
38+ makeMinimal = buildPackages . netbsd . makeMinimal . override { inherit ( self ) make-rules ; } ;
39+
40+ # The manual callPackages below should in principle be unnecessary, but are
41+ # necessary. See note in ../netbsd/default.nix
42+
43+ include = self . callPackage ./pkgs/include/package.nix {
44+ inherit ( buildOpenbsd ) makeMinimal ;
45+ inherit ( buildPackages . netbsd ) install rpcgen mtree ;
46+ } ;
47+
48+ csu = self . callPackage ./pkgs/csu.nix {
49+ inherit ( self ) include ;
50+ inherit ( buildOpenbsd ) makeMinimal ;
51+ inherit ( buildPackages . netbsd ) install ;
52+ } ;
53+
54+ libcMinimal = self . callPackage ./pkgs/libcMinimal/package.nix {
2355 inherit ( self ) csu include ;
2456 inherit ( buildOpenbsd ) makeMinimal ;
2557 inherit ( buildPackages . netbsd )
2658 install
2759 gencat
60+ tsort
2861 rpcgen
62+ ;
63+ } ;
64+
65+ librpcsvc = self . callPackage ./pkgs/librpcsvc.nix {
66+ inherit ( buildOpenbsd ) openbsdSetupHook makeMinimal lorder ;
67+ inherit ( buildPackages . netbsd )
68+ install
2969 tsort
70+ statHook
71+ rpcgen
3072 ;
3173 } ;
32- makeMinimal = buildPackages . netbsd . makeMinimal . override { inherit ( self ) make-rules ; } ;
74+
75+ libutil = self . callPackage ./pkgs/libutil.nix {
76+ inherit ( self ) libcMinimal ;
77+ inherit ( buildOpenbsd ) openbsdSetupHook makeMinimal lorder ;
78+ inherit ( buildPackages . netbsd ) install tsort statHook ;
79+ } ;
80+
81+ lorder = self . callPackage ./pkgs/lorder.nix { inherit ( buildPackages . netbsd ) install ; } ;
82+
83+ make-rules = self . callPackage ./pkgs/make-rules/package.nix { } ;
84+
3385 mkDerivation = self . callPackage ./pkgs/mkDerivation.nix {
34- inherit ( buildPackages . netbsd ) install ;
86+ inherit ( buildPackages . netbsd ) install tsort ;
3587 inherit ( buildPackages . buildPackages ) rsync ;
3688 } ;
37- include = self . callPackage ./pkgs/include/package.nix {
38- inherit ( buildOpenbsd ) makeMinimal ;
39- inherit ( buildPackages . netbsd ) install rpcgen mtree ;
40- } ;
41- csu = self . callPackage ./pkgs/csu.nix {
42- inherit ( self ) include ;
43- inherit ( buildOpenbsd ) makeMinimal ;
44- inherit ( buildPackages . netbsd ) install ;
45- } ;
46- make-rules = self . callPackage ./pkgs/make-rules/package.nix { } ;
47- lorder = self . callPackage ./pkgs/lorder.nix { inherit ( buildPackages . netbsd ) install ; } ;
4889 }
4990 ) ;
5091}
0 commit comments