diff options
author | Guillaume Girol <symphorien+git@xlumurb.eu> | 2021-08-14 12:00:00 +0000 |
---|---|---|
committer | Guillaume Girol <symphorien+git@xlumurb.eu> | 2021-08-19 09:30:48 +0200 |
commit | dd8a67479603f826c33d85a7fc45db1d59e27516 (patch) | |
tree | e6d712449b06cffbd533b22e038d848ba9dbe504 /pkgs | |
parent | 0b134b0a9c0f8f12e4dbeca790e2bb8408ec2196 (diff) | |
download | nixlib-dd8a67479603f826c33d85a7fc45db1d59e27516.tar nixlib-dd8a67479603f826c33d85a7fc45db1d59e27516.tar.gz nixlib-dd8a67479603f826c33d85a7fc45db1d59e27516.tar.bz2 nixlib-dd8a67479603f826c33d85a7fc45db1d59e27516.tar.lz nixlib-dd8a67479603f826c33d85a7fc45db1d59e27516.tar.xz nixlib-dd8a67479603f826c33d85a7fc45db1d59e27516.tar.zst nixlib-dd8a67479603f826c33d85a7fc45db1d59e27516.zip |
ocamlPackages.wasm: fix static cross
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/ocaml-modules/wasm/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/wasm/default.nix b/pkgs/development/ocaml-modules/wasm/default.nix index c89449264889..4befff2721b9 100644 --- a/pkgs/development/ocaml-modules/wasm/default.nix +++ b/pkgs/development/ocaml-modules/wasm/default.nix @@ -15,7 +15,11 @@ stdenv.mkDerivation rec { sha256 = "1kp72yv4k176i94np0m09g10cviqp2pnpm7jmiq6ik7fmmbknk7c"; }; - buildInputs = [ ocaml findlib ocamlbuild ]; + nativeBuildInputs = [ ocaml findlib ocamlbuild ]; + strictDeps = true; + + # x86_64-unknown-linux-musl-ld: -r and -pie may not be used together + hardeningDisable = lib.optional stdenv.hostPlatform.isStatic "pie"; makeFlags = [ "-C" "interpreter" ]; |