Loading pkgs/development/ocaml-modules/gdal/default.nix 0 → 100644 +34 −0 Original line number Diff line number Diff line { buildDunePackage, ctypes-foreign, fetchurl, gdal, lib, }: buildDunePackage (finalAttrs: { pname = "gdal"; version = "0.11.0"; src = fetchurl { url = "https://github.com/ocaml-gdal/ocaml-gdal/archive/refs/tags/v${finalAttrs.version}.tar.gz"; hash = "sha256-fW6bX4cv8eW2dsbv0SaeQwRpuPWB0mGzokQVjCaA8Z8="; }; postPatch = '' substituteInPlace src/lib.ml \ --replace-fail '"libgdal.so"' '"${gdal}/lib/libgdal.so"' ''; propagatedBuildInputs = [ ctypes-foreign gdal ]; doCheck = true; meta = { description = "OCaml GDAL and OGR bindings"; homepage = "https://github.com/ocaml-gdal/ocaml-gdal"; license = lib.licenses.mit; maintainers = [ lib.maintainers.vog ]; }; }) pkgs/top-level/ocaml-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -701,6 +701,8 @@ let gd = callPackage ../development/ocaml-modules/gd { inherit (pkgs) gd; }; gdal = callPackage ../development/ocaml-modules/gdal { inherit (pkgs) gdal; }; gen = callPackage ../development/ocaml-modules/gen { }; gen_js_api = callPackage ../development/ocaml-modules/gen_js_api { }; Loading Loading
pkgs/development/ocaml-modules/gdal/default.nix 0 → 100644 +34 −0 Original line number Diff line number Diff line { buildDunePackage, ctypes-foreign, fetchurl, gdal, lib, }: buildDunePackage (finalAttrs: { pname = "gdal"; version = "0.11.0"; src = fetchurl { url = "https://github.com/ocaml-gdal/ocaml-gdal/archive/refs/tags/v${finalAttrs.version}.tar.gz"; hash = "sha256-fW6bX4cv8eW2dsbv0SaeQwRpuPWB0mGzokQVjCaA8Z8="; }; postPatch = '' substituteInPlace src/lib.ml \ --replace-fail '"libgdal.so"' '"${gdal}/lib/libgdal.so"' ''; propagatedBuildInputs = [ ctypes-foreign gdal ]; doCheck = true; meta = { description = "OCaml GDAL and OGR bindings"; homepage = "https://github.com/ocaml-gdal/ocaml-gdal"; license = lib.licenses.mit; maintainers = [ lib.maintainers.vog ]; }; })
pkgs/top-level/ocaml-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -701,6 +701,8 @@ let gd = callPackage ../development/ocaml-modules/gd { inherit (pkgs) gd; }; gdal = callPackage ../development/ocaml-modules/gdal { inherit (pkgs) gdal; }; gen = callPackage ../development/ocaml-modules/gen { }; gen_js_api = callPackage ../development/ocaml-modules/gen_js_api { }; Loading