nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildDunePackage,
4 fetchFromGitHub,
5 cmdliner,
6 fmt,
7 markup,
8 ocaml-crunch,
9 opam-client,
10 opam-format,
11 ppx_deriving_yojson,
12 ppx_expect,
13 yojson,
14}:
15
16buildDunePackage (finalAttrs: {
17 pname = "oui";
18 version = "0-unstable-2025-12-02";
19
20 minimalOCamlVersion = "4.13";
21
22 src = fetchFromGitHub {
23 owner = "OCamlPro";
24 repo = "ocaml-universal-installer";
25 rev = "202dae889c4850674f7b40ca8d541f98afa2ba0f";
26 hash = "sha256-pwvp6bJF18NzKh/JSet05VHoJNZ7FKr0Hsi/RJ/TK4U=";
27 };
28
29 nativeBuildInputs = [
30 ocaml-crunch
31 ];
32
33 propagatedBuildInputs = [
34 cmdliner
35 fmt
36 markup
37 opam-client
38 opam-format
39 ppx_deriving_yojson
40 yojson
41 ];
42
43 # upstream tests are matching full library paths
44 doCheck = false;
45 checkInputs = [
46 ppx_expect
47 ];
48
49 meta = {
50 homepage = "https://github.com/OCamlPro/ocaml-universal-installer";
51 description = "A tool that builds standalone installers for your OCaml applications";
52 longDescription = ''
53 oui is a command-line tool that generates standalone installers for
54 Linux, Windows and macOS from your OCaml and non OCaml binaries.
55 '';
56 license = lib.licenses.lgpl21;
57 maintainers = [ lib.maintainers.stepbrobd ];
58 mainProgram = "opam-oui";
59 };
60})