Re: [Nix-dev] How to intall llvm-3.9.0 API for ocaml-4.0.3?

2016-11-04 Thread Vincent Laporte
Hi,

So as to override the ocaml-llvm derivation to change the llvm version,
you can write something like:

ocamlPackages_4_03.llvm.override { llvm = llvm_38; }

This works with llvm-3.8. Unfortunately for you, it does not work with
llvm-3.9; indeed, the build process of llvm has changed so that the
ocaml-llvm derivation cannot be used as is. You may need to write your
own derivation, maybe looking at the llvm-3.9 derivation. If you
succeed, please share your findings.

Cheers,
--
Vincent.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] How to intall llvm-3.9.0 API for ocaml-4.0.3?

2016-11-03 Thread Pavel Chuprikov
Hi Jose,

Try to override OCaml package instead:

environment.systemPackages = with pkgs; [
  ocamlPackages.llvm.override { llvm = llvm_39; };
];

--
Pavel


чт, 3 нояб. 2016 г. в 15:13, José Romildo Malaquias :

> Hello.
>
> I want to install the latest LLVM bindings (3.9.0) for the OCaml
> programming language (4.0.3) on my NixOS unstable system.
>
> Currently I have the following on my system configuration:
>
>   nixpkgs.config.packageOverrides = pkgs: rec {
> # ...
> ocamlPackages = pkgs.ocamlPackages_latest;# 4.0.3 currently
> llvmPackages = pkgs.llvmPackages_39;  # latest
>   };
>
>   environment.systemPackages = with pkgs; [
> # ...
> llvmPackages.llvm
> ocamlPackages.llvm
>   };
>
> This gives me ocaml-llvm-3.7.1.
>
> How can get ocaml-llvm-3.9.0?
>
> Romildo
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] How to intall llvm-3.9.0 API for ocaml-4.0.3?

2016-11-03 Thread José Romildo Malaquias
Hello.

I want to install the latest LLVM bindings (3.9.0) for the OCaml
programming language (4.0.3) on my NixOS unstable system.

Currently I have the following on my system configuration:

  nixpkgs.config.packageOverrides = pkgs: rec {
# ...
ocamlPackages = pkgs.ocamlPackages_latest;# 4.0.3 currently
llvmPackages = pkgs.llvmPackages_39;  # latest
  };

  environment.systemPackages = with pkgs; [
# ...
llvmPackages.llvm
ocamlPackages.llvm
  };

This gives me ocaml-llvm-3.7.1.

How can get ocaml-llvm-3.9.0?

Romildo
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev