ocamlgraph: fix binary location (binaries had double prefix path)

Due to setting `DESTDIR` *and* `exec_prefix` (defaulted to `$prefix`), binaries
ended up in `$out/$out/bin` instead of just $out/bin. Not setting `DESTDIR` and adapting
the `LIBDIR` patch a little fixes this issue.

+1 -3
+1 -3
pkgs/development/ocaml-modules/ocamlgraph/default.nix
··· 11 11 12 12 buildInputs = [ ocaml findlib ocamlPackages.lablgtk ocamlPackages.camlp4 ]; 13 13 14 - patches = ./destdir.patch; 15 - 16 14 # some patching is required so that the lablgtk2 library is taken into account. It 17 15 # does not reside in a subdirectory of the default library path, hence: 18 16 # * configure looked in the wrong path 19 17 # * ocaml needs that directory and the stubs directory as -I flag 20 18 postPatch = '' 21 - sed -i 's@$(DESTDIR)$(OCAMLLIB)/ocamlgraph@$(DESTDIR)/lib/ocaml/${ocaml.version}/site-lib/ocamlgraph@' Makefile.in 19 + sed -i 's@$(DESTDIR)$(OCAMLLIB)/ocamlgraph@$(prefix)/lib/ocaml/${ocaml.version}/site-lib/ocamlgraph@' Makefile.in 22 20 sed -i 's@$OCAMLLIB/lablgtk2@${ocamlPackages.lablgtk}/lib/ocaml/${ocaml.version}/site-lib/lablgtk2@' configure Makefile.in 23 21 sed -i 's@+lablgtk2@${ocamlPackages.lablgtk}/lib/ocaml/${ocaml.version}/site-lib/lablgtk2 -I ${ocamlPackages.lablgtk}/lib/ocaml/${ocaml.version}/site-lib/stublibs@' configure Makefile.in editor/Makefile 24 22 '';