Merge pull request #120461 from alyssais/netbsd-common

netbsd.common: just export the sources
This commit is contained in:
John Ericson 2021-04-23 18:00:01 -04:00 committed by GitHub
commit a78ed5cbdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 12 deletions

View File

@ -479,19 +479,14 @@ in lib.makeScopeWithSplicing
makeMinimal makeMinimal
install mandoc groff nbperf rpcgen install mandoc groff nbperf rpcgen
]; ];
extraPaths = with self; [ common.src ]; extraPaths = with self; [ common ];
headersOnly = true; headersOnly = true;
noCC = true; noCC = true;
meta.platforms = lib.platforms.netbsd; meta.platforms = lib.platforms.netbsd;
makeFlags = [ "RPCGEN_CPP=${buildPackages.stdenv.cc.cc}/bin/cpp" ]; makeFlags = [ "RPCGEN_CPP=${buildPackages.stdenv.cc.cc}/bin/cpp" ];
}; };
common = mkDerivation { common = fetchNetBSD "common" "8.0" "1fsm2b7p7zkhiz523jw75088cq2h39iknp0fp3di9a64bikwbhi1";
path = "common";
version = "8.0";
sha256 = "1fsm2b7p7zkhiz523jw75088cq2h39iknp0fp3di9a64bikwbhi1";
noCC = true;
};
sys-headers = mkDerivation { sys-headers = mkDerivation {
pname = "sys-headers"; pname = "sys-headers";
@ -527,7 +522,7 @@ in lib.makeScopeWithSplicing
''; '';
meta.platforms = lib.platforms.netbsd; meta.platforms = lib.platforms.netbsd;
extraPaths = with self; [ common.src ]; extraPaths = with self; [ common ];
installPhase = "includesPhase"; installPhase = "includesPhase";
dontBuild = true; dontBuild = true;
@ -564,7 +559,7 @@ in lib.makeScopeWithSplicing
path = "lib/libutil"; path = "lib/libutil";
version = "8.0"; version = "8.0";
sha256 = "077syyxd303m4x7avs5nxzk4c9n13d5lyk5aicsacqjvx79qrk3i"; sha256 = "077syyxd303m4x7avs5nxzk4c9n13d5lyk5aicsacqjvx79qrk3i";
extraPaths = with self; [ common.src libc.src sys.src ]; extraPaths = with self; [ common libc.src sys.src ];
nativeBuildInputs = with buildPackages.netbsd; [ nativeBuildInputs = with buildPackages.netbsd; [
bsdSetupHook bsdSetupHook
makeMinimal makeMinimal
@ -678,7 +673,7 @@ in lib.makeScopeWithSplicing
version = "8.0"; version = "8.0";
sha256 = "078qsi4mg1hyyxr1awvjs9b0c2gicg3zw4vl603g1m9vm8gfxw9l"; sha256 = "078qsi4mg1hyyxr1awvjs9b0c2gicg3zw4vl603g1m9vm8gfxw9l";
meta.platforms = lib.platforms.netbsd; meta.platforms = lib.platforms.netbsd;
extraPaths = with self; [ common.src libc.src ]; extraPaths = with self; [ common libc.src ];
postPatch = '' postPatch = ''
sed -i 's,/usr\(/include/sys/syscall.h\),${self.headers}\1,g' \ sed -i 's,/usr\(/include/sys/syscall.h\),${self.headers}\1,g' \
$BSDSRCDIR/lib/{libc,librt}/sys/Makefile.inc $BSDSRCDIR/lib/{libc,librt}/sys/Makefile.inc
@ -710,7 +705,7 @@ in lib.makeScopeWithSplicing
noCC = false; noCC = false;
dontBuild = false; dontBuild = false;
buildInputs = with self; [ headers ]; buildInputs = with self; [ headers ];
extraPaths = with self; [ common.src libc.src sys.src ]; extraPaths = with self; [ common libc.src sys.src ];
}; };
libresolv = mkDerivation { libresolv = mkDerivation {
@ -773,7 +768,7 @@ in lib.makeScopeWithSplicing
USE_FORT = "yes"; USE_FORT = "yes";
MKPROFILE = "no"; MKPROFILE = "no";
extraPaths = with self; [ extraPaths = with self; [
common.src i18n_module.src sys.src common i18n_module.src sys.src
ld_elf_so.src libpthread.src libm.src libresolv.src ld_elf_so.src libpthread.src libm.src libresolv.src
librpcsvc.src libutil.src librt.src libcrypt.src librpcsvc.src libutil.src librt.src libcrypt.src
]; ];