nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildDunePackage,
4 fetchFromGitHub,
5 fmt,
6 ppx_sexp_conv,
7 sexplib,
8 alcotest,
9}:
10
11buildDunePackage (finalAttrs: {
12 pname = "dockerfile";
13 version = "8.3.4";
14
15 src = fetchFromGitHub {
16 owner = "ocurrent";
17 repo = "ocaml-dockerfile";
18 tag = finalAttrs.version;
19 hash = "sha256-q8yzuRkGVe/t0N0HFLFqOPNyvWSxf4WHApZVk1CG1qw=";
20 };
21
22 propagatedBuildInputs = [
23 fmt
24 ppx_sexp_conv
25 sexplib
26 ];
27
28 checkInputs = [
29 alcotest
30 ];
31
32 doCheck = true;
33
34 meta = {
35 description = "Interface for creating Dockerfiles";
36 homepage = "https://www.ocurrent.org/ocaml-dockerfile/dockerfile/Dockerfile/index.html";
37 downloadPage = "https://github.com/ocurrent/ocaml-dockerfile";
38 changelog = "https://github.com/ocurrent/ocaml-dockerfile/blob/${finalAttrs.version}/CHANGES.md";
39 license = lib.licenses.isc;
40 maintainers = [ lib.maintainers.ethancedwards8 ];
41 };
42})