Files
nixpkgs/pkgs/development/ocaml-modules/gitlab/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
1013 B
Nix

{
lib,
buildDunePackage,
fetchFromGitHub,
uri,
cohttp-lwt,
atdgen,
atdgen-runtime,
yojson,
iso8601,
stringext,
}:
buildDunePackage rec {
pname = "gitlab";
version = "0.1.8";
src = fetchFromGitHub {
owner = "tmcgilchrist";
repo = "ocaml-gitlab";
rev = version;
hash = "sha256-7pUpH1SoP4eW8ild5j+Tcy+aTXq0+eSkhKUOXJ6Z30k=";
};
postPatch = ''
substituteInPlace lib/dune --replace-warn 'atdgen str' 'atdgen-runtime str'
'';
minimalOCamlVersion = "4.08";
buildInputs = [ stringext ];
nativeBuildInputs = [ atdgen ];
propagatedBuildInputs = [
uri
cohttp-lwt
atdgen-runtime
yojson
iso8601
];
doCheck = true;
meta = {
homepage = "https://github.com/tmcgilchrist/ocaml-gitlab";
description = "Native OCaml bindings to Gitlab REST API v4";
license = lib.licenses.bsd3;
changelog = "https://github.com/tmcgilchrist/ocaml-gitlab/releases/tag/${version}";
maintainers = with lib.maintainers; [ zazedd ];
};
}