Files
nixpkgs/pkgs/development/ocaml-modules/piqi/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

62 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
ocaml,
findlib,
which,
sedlex,
easy-format,
xmlm,
base64,
}:
stdenv.mkDerivation rec {
version = "0.6.16";
pname = "piqi";
name = "ocaml${ocaml.version}-${pname}-${version}";
src = fetchFromGitHub {
owner = "alavrik";
repo = pname;
rev = "v${version}";
sha256 = "sha256-qE+yybTn+kzbY0h8udhZYO+GwQPI/J/6p3LMmF12cFU=";
};
nativeBuildInputs = [
ocaml
findlib
which
];
propagatedBuildInputs = [
sedlex
xmlm
easy-format
base64
];
strictDeps = true;
patches = [
./no-stream.patch
./no-ocamlpath-override.patch
];
createFindlibDestdir = true;
postBuild = "make -C piqilib piqilib.cma";
installTargets = [
"install"
"ocaml-install"
];
meta = {
homepage = "https://piqi.org";
description = "Universal schema language and a collection of tools built around it";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.maurer ];
broken = lib.versionAtLeast ocaml.version "5.0";
};
}