forked from mirrors/nixpkgs
nixUnstable: Disable seccomp support on RISC-V.
This commit is contained in:
parent
5a0eec1de1
commit
765194d7ab
|
@ -30,7 +30,7 @@ let
|
||||||
buildInputs = [ curl openssl sqlite xz bzip2 ]
|
buildInputs = [ curl openssl sqlite xz bzip2 ]
|
||||||
++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium
|
++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium
|
||||||
++ lib.optionals fromGit [ brotli ] # Since 1.12
|
++ lib.optionals fromGit [ brotli ] # Since 1.12
|
||||||
++ lib.optional stdenv.isLinux libseccomp
|
++ lib.optional (stdenv.isLinux && !hostPlatform.isRiscV) libseccomp
|
||||||
++ lib.optional ((stdenv.isLinux || stdenv.isDarwin) && is20)
|
++ lib.optional ((stdenv.isLinux || stdenv.isDarwin) && is20)
|
||||||
(aws-sdk-cpp.override {
|
(aws-sdk-cpp.override {
|
||||||
apis = ["s3"];
|
apis = ["s3"];
|
||||||
|
@ -55,7 +55,9 @@ let
|
||||||
]
|
]
|
||||||
++ lib.optional (
|
++ lib.optional (
|
||||||
hostPlatform != buildPlatform && hostPlatform ? nix && hostPlatform.nix ? system
|
hostPlatform != buildPlatform && hostPlatform ? nix && hostPlatform.nix ? system
|
||||||
) ''--with-system=${hostPlatform.nix.system}'';
|
) ''--with-system=${hostPlatform.nix.system}''
|
||||||
|
# RISC-V support in progress https://github.com/seccomp/libseccomp/pull/50
|
||||||
|
++ lib.optional hostPlatform.isRiscV "--disable-seccomp-sandboxing";
|
||||||
|
|
||||||
makeFlags = "profiledir=$(out)/etc/profile.d";
|
makeFlags = "profiledir=$(out)/etc/profile.d";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue