diff options
author | Yorick van Pelt <yorick@yorickvanpelt.nl> | 2019-10-31 17:24:23 +0700 |
---|---|---|
committer | Alexander Bantyev <balsoft75@gmail.com> | 2019-11-11 11:10:14 +0300 |
commit | 2693fa4ceac41d1ae285cdf797dc0e1dcde3114f (patch) | |
tree | 33f038626477881d53dbdebe8af1e1ed4d9b9410 /pkgs/development/ocaml-modules | |
parent | 4550405ac974878bf2cfa7bb4137d414b5cec2f3 (diff) | |
download | nixpkgs-2693fa4ceac41d1ae285cdf797dc0e1dcde3114f.tar nixpkgs-2693fa4ceac41d1ae285cdf797dc0e1dcde3114f.tar.gz nixpkgs-2693fa4ceac41d1ae285cdf797dc0e1dcde3114f.tar.bz2 nixpkgs-2693fa4ceac41d1ae285cdf797dc0e1dcde3114f.tar.lz nixpkgs-2693fa4ceac41d1ae285cdf797dc0e1dcde3114f.tar.xz nixpkgs-2693fa4ceac41d1ae285cdf797dc0e1dcde3114f.tar.zst nixpkgs-2693fa4ceac41d1ae285cdf797dc0e1dcde3114f.zip |
ocamlPackages.ocamlgraph: allow building without lablgtk
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/ocamlgraph/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/ocamlgraph/default.nix b/pkgs/development/ocaml-modules/ocamlgraph/default.nix index 887dce58689..a39e72d3880 100644 --- a/pkgs/development/ocaml-modules/ocamlgraph/default.nix +++ b/pkgs/development/ocaml-modules/ocamlgraph/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, ocaml, findlib, lablgtk}: +{stdenv, fetchurl, ocaml, findlib, lablgtk ? null}: stdenv.mkDerivation rec { pname = "ocamlgraph"; @@ -16,7 +16,8 @@ stdenv.mkDerivation rec { postPatch = '' sed -i 's@$(DESTDIR)$(OCAMLLIB)/ocamlgraph@$(DESTDIR)/lib/ocaml/${ocaml.version}/site-lib/ocamlgraph@' Makefile.in sed -i 's@OCAMLFINDDEST := -destdir $(DESTDIR)@@' Makefile.in - sed -i 's@+lablgtk2@${lablgtk}/lib/ocaml/${ocaml.version}/site-lib/lablgtk2 -I ${lablgtk}/lib/ocaml/${ocaml.version}/site-lib/stublibs@' configure Makefile.in editor/Makefile + ${stdenv.lib.optionalString (lablgtk != null) + "sed -i 's@+lablgtk2@${lablgtk}/lib/ocaml/${ocaml.version}/site-lib/lablgtk2 -I ${lablgtk}/lib/ocaml/${ocaml.version}/site-lib/stublibs@' configure Makefile.in editor/Makefile"} ''; createFindlibDestdir = true; |