summaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/malfunction/default.nix
blob: a0ea54dfe6eda5c6876d0a9a951e48d88fec5a12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  lib,
  fetchzip,
  buildDunePackage,
  ocaml,
  findlib,
  zarith,
  cppo,
}:

buildDunePackage (finalAttrs: {
  pname = "malfunction";
  version = "0.7.1";

  src = fetchzip {
    url = "https://github.com/stedolan/malfunction/archive/refs/tags/v${finalAttrs.version}.tar.gz";
    hash = "sha256-Cpe5rSBvsr3pqbucGZelutPoI+bcQPFCbdcKsE/HieY=";
  };

  propagatedBuildInputs = [
    findlib
    zarith
  ];
  nativeBuildInputs = [
    cppo
  ];

  meta = {
    homepage = "http://github.com/stedolan/malfunction";
    description = "Malfunction is a high-performance, low-level untyped program representation, designed as a target for compilers of functional programming languages.";
    license = lib.licenses.lgpl21;
    maintainers = with lib.maintainers; [ _4ever2 ];
    mainProgram = "malfunction";
    broken = lib.versionAtLeast ocaml.version "5.4";
  };
})