diff options
author | Marco Maggesi <1809783+maggesi@users.noreply.github.com> | 2019-10-07 16:04:15 +0200 |
---|---|---|
committer | Marco Maggesi <1809783+maggesi@users.noreply.github.com> | 2019-10-07 16:04:15 +0200 |
commit | 2b05a35e08a4ff732f037b67ade05c063ef0c5ce (patch) | |
tree | 811ab5c8fb4b5eaa70eb5171d08a40b6cc0c4e91 /pkgs/development/ocaml-modules | |
parent | c70d7fa7603c7c4ea64211dd2be5995a55310245 (diff) | |
parent | 520a658b26e169d43caad9d488eb3dd4576e80d9 (diff) | |
download | nixlib-2b05a35e08a4ff732f037b67ade05c063ef0c5ce.tar nixlib-2b05a35e08a4ff732f037b67ade05c063ef0c5ce.tar.gz nixlib-2b05a35e08a4ff732f037b67ade05c063ef0c5ce.tar.bz2 nixlib-2b05a35e08a4ff732f037b67ade05c063ef0c5ce.tar.lz nixlib-2b05a35e08a4ff732f037b67ade05c063ef0c5ce.tar.xz nixlib-2b05a35e08a4ff732f037b67ade05c063ef0c5ce.tar.zst nixlib-2b05a35e08a4ff732f037b67ade05c063ef0c5ce.zip |
Merge branch 'master' of github.com:NixOS/nixpkgs
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/pgocaml/default.nix | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/pkgs/development/ocaml-modules/pgocaml/default.nix b/pkgs/development/ocaml-modules/pgocaml/default.nix index cf3cd3272a8e..8896675f63c8 100644 --- a/pkgs/development/ocaml-modules/pgocaml/default.nix +++ b/pkgs/development/ocaml-modules/pgocaml/default.nix @@ -1,34 +1,27 @@ -{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, camlp4 -, ppx_tools_versioned, result, rresult +{ lib, fetchFromGitHub, buildDunePackage , calendar, csv, hex, re }: -if !stdenv.lib.versionAtLeast ocaml.version "4.05" -then throw "pgocaml is not available for OCaml ${ocaml.version}" -else - -stdenv.mkDerivation rec { - name = "ocaml${ocaml.version}-pgocaml-${version}"; - version = "3.2"; +buildDunePackage rec { + pname = "pgocaml"; + version = "4.0"; src = fetchFromGitHub { owner = "darioteixeira"; repo = "pgocaml"; rev = "v${version}"; - sha256 = "0jxzr5niv8kdh90pr57b1qb500zkkasxb8b8l7w9cydcfprnlk24"; + sha256 = "1s8c5prr7jb9k76bz990m836czm6k8rv5bvp6s2zg9ra0w19w90j"; }; - buildInputs = [ ocaml findlib ocamlbuild camlp4 ppx_tools_versioned result rresult ]; - propagatedBuildInputs = [ calendar csv hex re ]; + minimumOCamlVersion = "4.05"; - configureFlags = [ "--enable-p4" "--enable-ppx" ]; + preConfigure = "patchShebangs src/genconfig.sh"; - createFindlibDestdir = true; + propagatedBuildInputs = [ calendar csv hex re ]; - meta = with stdenv.lib; { + meta = with lib; { description = "An interface to PostgreSQL databases for OCaml applications"; - homepage = http://pgocaml.forge.ocamlcore.org/; + inherit (src.meta) homepage; license = licenses.lgpl2; maintainers = with maintainers; [ vbgl ]; - inherit (ocaml.meta) platforms; }; } |