about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien+git@xlumurb.eu>2021-08-14 12:00:00 +0000
committerGuillaume Girol <symphorien+git@xlumurb.eu>2021-08-19 09:30:48 +0200
commitdd8a67479603f826c33d85a7fc45db1d59e27516 (patch)
treee6d712449b06cffbd533b22e038d848ba9dbe504 /pkgs/development/ocaml-modules
parent0b134b0a9c0f8f12e4dbeca790e2bb8408ec2196 (diff)
downloadnixlib-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/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/wasm/default.nix6
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" ];