Merge pull request #120347 from alyssais/netbsd-librt
netbsd.librt: fix build
This commit is contained in:
commit
53a2aee7d7
@ -671,6 +671,11 @@ 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 ];
|
||||||
|
postPatch = ''
|
||||||
|
sed -i 's,/usr\(/include/sys/syscall.h\),${self.headers}\1,g' \
|
||||||
|
$BSDSRCDIR/lib/{libc,librt}/sys/Makefile.inc
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
libcrypt = mkDerivation {
|
libcrypt = mkDerivation {
|
||||||
@ -816,10 +821,7 @@ in lib.makeScopeWithSplicing
|
|||||||
make -C $BSDSRCDIR/lib/libcrypt $makeFlags
|
make -C $BSDSRCDIR/lib/libcrypt $makeFlags
|
||||||
make -C $BSDSRCDIR/lib/libcrypt $makeFlags install
|
make -C $BSDSRCDIR/lib/libcrypt $makeFlags install
|
||||||
'';
|
'';
|
||||||
postPatch = ''
|
inherit (self.librt) postPatch;
|
||||||
sed -i 's,/usr\(/include/sys/syscall.h\),${self.headers}\1,g' \
|
|
||||||
sys/Makefile.inc ../librt/sys/Makefile.inc
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
#
|
#
|
||||||
# END LIBRARIES
|
# END LIBRARIES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user