nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5 dune-configurator,
6 ppxlib,
7}:
8
9buildDunePackage (finalAttrs: {
10 pname = "extunix";
11 version = "0.4.4";
12
13 minimalOCamlVersion = "5.3.0";
14
15 src = fetchurl {
16 url = "https://github.com/ygrek/extunix/releases/download/v${finalAttrs.version}/extunix-${finalAttrs.version}.tbz";
17 hash = "sha256-kzTIkjFiI+aK73lcpystQp1O7Apkf0GLA142oFPRSX0=";
18 };
19
20 postPatch = ''
21 substituteInPlace src/dune --replace-fail 'libraries unix bigarray bytes' 'libraries unix bigarray'
22 '';
23
24 buildInputs = [
25 dune-configurator
26 ];
27
28 propagatedBuildInputs = [
29 ppxlib
30 ];
31
32 # need absolute paths outside from sandbox
33 doCheck = false;
34
35 meta = {
36 description = "Collection of thin bindings to various low-level system API";
37 homepage = "https://github.com/ygrek/extunix";
38 changelog = "https://github.com/ygrek/extunix/releases/tag/v${finalAttrs.version}";
39 license = lib.licenses.lgpl21Only;
40 maintainers = with lib.maintainers; [ redianthus ];
41 };
42})