diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2014-11-03 12:55:12 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2014-11-03 12:58:54 +0100 |
commit | ed867a50eb89a90db3b1741bf4c0bf0cd4557dba (patch) | |
tree | a95502fbc6cb68e944d1aa5202d024c97365b09c /pkgs/development/ocaml-modules | |
parent | 5b00625aa434205774d3e1cd43852ca1cbffc046 (diff) | |
download | nixlib-ed867a50eb89a90db3b1741bf4c0bf0cd4557dba.tar nixlib-ed867a50eb89a90db3b1741bf4c0bf0cd4557dba.tar.gz nixlib-ed867a50eb89a90db3b1741bf4c0bf0cd4557dba.tar.bz2 nixlib-ed867a50eb89a90db3b1741bf4c0bf0cd4557dba.tar.lz nixlib-ed867a50eb89a90db3b1741bf4c0bf0cd4557dba.tar.xz nixlib-ed867a50eb89a90db3b1741bf4c0bf0cd4557dba.tar.zst nixlib-ed867a50eb89a90db3b1741bf4c0bf0cd4557dba.zip |
iconv: remove usage on Linux in several packages
This fixes builds after #4419. Thanks to @vbgl for the original commit; I changed that as I'm not sure whether passing null values to buildInputs is clean. CC maintainers: @coroa, @peti, @phreedom, @robberer, @jcumming.
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/ocaml-text/default.nix | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/development/ocaml-modules/ocaml-text/default.nix b/pkgs/development/ocaml-modules/ocaml-text/default.nix index 08136dd2b100..387c5cef19ad 100644 --- a/pkgs/development/ocaml-modules/ocaml-text/default.nix +++ b/pkgs/development/ocaml-modules/ocaml-text/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, libiconv, ocaml, findlib, ncurses}: +{stdenv, fetchurl, libiconvOrNull, ocaml, findlib, ncurses}: stdenv.mkDerivation { name = "ocaml-text-0.6"; @@ -8,9 +8,12 @@ stdenv.mkDerivation { sha256 = "0j8gaak0ajnlmn8knvfygqwwzs7awjv5rfn5cbj6qxqbxhjd5m6g"; }; - buildInputs = [ocaml findlib libiconv ncurses]; + buildInputs = [ocaml findlib ncurses] + ++ stdenv.lib.optional (libiconvOrNull != null) libiconvOrNull; - configurePhase = "iconv_prefix=${libiconv} ocaml setup.ml -configure"; + configurePhase = + (stdenv.lib.optionalString (libiconvOrNull != null) "iconv_prefix=${libiconvOrNull} ") + + "ocaml setup.ml -configure"; createFindlibDestdir = true; @@ -18,9 +21,7 @@ stdenv.mkDerivation { meta = { homepage = "http://ocaml-text.forge.ocamlcore.org/"; description = "OCaml-Text is a library for dealing with ``text'', i.e. sequence of unicode characters, in a convenient way. "; - license = "BSD"; + license = stdenv.lib.licenses.bsd3; platforms = ocaml.meta.platforms; - maintainers = [ - ]; }; } |