Files
nixpkgs/pkgs/development/ocaml-modules/piqi-ocaml/default.nix
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
955 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
ocaml,
findlib,
piqi,
stdlib-shims,
num,
}:
stdenv.mkDerivation rec {
version = "0.7.8";
pname = "piqi-ocaml";
name = "ocaml${ocaml.version}-${pname}-${version}";
src = fetchFromGitHub {
owner = "alavrik";
repo = pname;
rev = "v${version}";
sha256 = "sha256-6Luq49sbo+AqLSq57mc6fLhrRx0K6G5LCUIzkGPfqYo=";
};
nativeBuildInputs = [
ocaml
findlib
];
buildInputs = [
piqi
stdlib-shims
];
checkInputs = [ num ];
strictDeps = true;
createFindlibDestdir = true;
installPhase = ''
runHook preInstall
DESTDIR=$out make install
runHook postInstall
'';
meta = {
description = "Universal schema language and a collection of tools built around it. These are the ocaml bindings";
homepage = "https://piqi.org";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.maurer ];
mainProgram = "piqic-ocaml";
};
}