about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorAntonio Nuno Monteiro <anmonteiro@gmail.com>2020-01-08 18:41:26 -0800
committerMario Rodas <marsam@users.noreply.github.com>2020-01-08 22:51:55 -0500
commitb8c0e8b6b7ce59f593fc546b2a65cdd5e06e2e32 (patch)
tree4b36946469215472694ff428268c3ed0fe74b5c9 /pkgs
parent4e222ab09d16988798091fbed74cec2719687d53 (diff)
ocamlPackages.ppxfind: dontStrip for all versions
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/ocaml-modules/ppxfind/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/ppxfind/default.nix b/pkgs/development/ocaml-modules/ppxfind/default.nix
index 3b61a65126358..75d1e57765e92 100644
--- a/pkgs/development/ocaml-modules/ppxfind/default.nix
+++ b/pkgs/development/ocaml-modules/ppxfind/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildDunePackage, fetchurl, ocaml, ocaml-migrate-parsetree }:
+{ stdenv, lib, buildDunePackage, fetchurl, ocaml, ocaml-migrate-parsetree }:
 
 buildDunePackage (rec {
 	pname = "ppxfind";
@@ -12,6 +12,9 @@ buildDunePackage (rec {
 
 	buildInputs = [ ocaml-migrate-parsetree ];
 
+  # Don't run the native `strip' when cross-compiling.
+  dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;
+
 	meta = {
 		homepage = "https://github.com/diml/ppxfind";
 		description = "ocamlfind ppx tool";