{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/42738","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/42738/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/42738/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/42738/events","html_url":"https://github.com/NixOS/nixpkgs/issues/42738","id":336733381,"node_id":"MDU6SXNzdWUzMzY3MzMzODE=","number":42738,"title":"Need help packaging ppxlib","user":{"login":"Ptival","id":478606,"node_id":"MDQ6VXNlcjQ3ODYwNg==","avatar_url":"https://avatars3.githubusercontent.com/u/478606?v=4","gravatar_id":"","url":"https://api.github.com/users/Ptival","html_url":"https://github.com/Ptival","followers_url":"https://api.github.com/users/Ptival/followers","following_url":"https://api.github.com/users/Ptival/following{/other_user}","gists_url":"https://api.github.com/users/Ptival/gists{/gist_id}","starred_url":"https://api.github.com/users/Ptival/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ptival/subscriptions","organizations_url":"https://api.github.com/users/Ptival/orgs","repos_url":"https://api.github.com/users/Ptival/repos","events_url":"https://api.github.com/users/Ptival/events{/privacy}","received_events_url":"https://api.github.com/users/Ptival/received_events","type":"User","site_admin":false},"labels":[{"id":446025054,"node_id":"MDU6TGFiZWw0NDYwMjUwNTQ=","url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20ocaml","name":"6.topic: ocaml","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-06-28T18:35:34Z","updated_at":"2018-07-06T08:15:43Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hey everyone involved with OCaml packaging.\r\n\r\nI am trying to build a project that needs a ppx_driver version >= 0.10.1 because of some bug in 0.10.0.\r\nI noticed that there is even a 0.11.0 version available, and have tried jumping to it, but the building phase failed saying that it cannot find ppxlib:\r\n\r\n```\r\nconfiguring\r\nno configure script, doing nothing\r\nbuilding\r\nbuild flags: SHELL=/nix/store/0aa1ngxygf1iqanfbpdb10klc7r343c0-bash-4.4-p19/bin/bash\r\njbuilder build @install\r\nFile \"src/jbuild\", line 4, characters 14-20:\r\nError: Library \"ppxlib\" not found.\r\nHint: try: jbuilder external-lib-deps --missing @install\r\n```\r\n\r\nI'm not very familiar with the OCaml ecosystem, but I tried and package `ppxlib`, like so:\r\n\r\n```\r\n{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, jbuilder, result, ocaml-migrate-parsetree }:\r\n\r\nif !stdenv.lib.versionAtLeast ocaml.version \"4.04\"\r\nthen throw \"ppxlib is not available for OCaml ${ocaml.version}\"\r\nelse\r\n\r\nstdenv.mkDerivation rec {\r\n  name = \"ocaml${ocaml.version}-ppxlib-${version}\";\r\n  version = \"0.3.0\";\r\n\r\n  src = fetchFromGitHub {\r\n    owner = \"ocaml-ppx\";\r\n    repo = \"ppxlib\";\r\n    rev = version;\r\n    sha256 = \"1c7kvca67qpyr4hiy492yik5x31lmkhyhy5wpl0l0fbx7fr7l624\";\r\n  };\r\n\r\n  buildInputs = [ ocaml findlib ocamlbuild jbuilder ];\r\n  propagatedBuildInputs = [ ocaml-migrate-parsetree result ];\r\n\r\n  installPhase = ''\r\n    for p in *.install\r\n    do\r\n      ${jbuilder.installPhase} $p\r\n    done\r\n  '';\r\n\r\n  meta = with stdenv.lib; {\r\n    homepage = https://github.com/ocaml-ppx/ppxlib;\r\n    description = \"Base library and tools for ppx rewriters\";\r\n    license = licenses.mit;\r\n    maintainers = [  ];\r\n  };\r\n}\r\n```\r\n\r\n(not sure about that 4.04 bound on OCaml, but I was being slightly conservative)\r\n\r\nAnyway, while this derivation builds to success, derivations that I make depend on still fail with the same error about the library ppxlib not being found.\r\n\r\nIs there an ongoing effort to update those libraries? If anyone has input on this, it'd be much appreciated!"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/402962011","html_url":"https://github.com/NixOS/nixpkgs/issues/42738#issuecomment-402962011","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/42738","id":402962011,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjk2MjAxMQ==","user":{"login":"vbgl","id":2612464,"node_id":"MDQ6VXNlcjI2MTI0NjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2612464?v=4","gravatar_id":"","url":"https://api.github.com/users/vbgl","html_url":"https://github.com/vbgl","followers_url":"https://api.github.com/users/vbgl/followers","following_url":"https://api.github.com/users/vbgl/following{/other_user}","gists_url":"https://api.github.com/users/vbgl/gists{/gist_id}","starred_url":"https://api.github.com/users/vbgl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbgl/subscriptions","organizations_url":"https://api.github.com/users/vbgl/orgs","repos_url":"https://api.github.com/users/vbgl/repos","events_url":"https://api.github.com/users/vbgl/events{/privacy}","received_events_url":"https://api.github.com/users/vbgl/received_events","type":"User","site_admin":false},"created_at":"2018-07-06T08:15:43Z","updated_at":"2018-07-06T08:15:43Z","author_association":"CONTRIBUTOR","body":"PR #43084 includes `ppxlib`."}}
{"actor":{"display_login":"vbgl"}}