ocamlPackages.cstruct: 3.1.1 -> 4.0.0
ocamlPackages.cstruct-sexp: init at 4.0.0 ocamlPackages.x509: 0.6.1 -> 0.7.1 ocamlPackages.tls: 0.9.0 -> 0.10.4 jackline: 2018-05-11 -> 2019-08-08
This commit is contained in:
committed by
Vincent Laporte
parent
10ffd51a96
commit
81760f3235
@@ -1,20 +1,18 @@
|
||||
{ stdenv, fetchurl, buildDunePackage, sexplib, ocplib-endian }:
|
||||
{ lib, fetchurl, buildDunePackage }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "cstruct";
|
||||
version = "3.1.1";
|
||||
version = "4.0.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-${version}.tbz";
|
||||
sha256 = "1x4jxsvd1lrfibnjdjrkfl7hqsc48rljnwbap6faanj9qhwwa6v2";
|
||||
url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-v${version}.tbz";
|
||||
sha256 = "1q4fsc2m6d96yf42g3wb3gcnhpnxw800df5mh3yr25pprj8y4m1a";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ sexplib ocplib-endian ];
|
||||
|
||||
meta = {
|
||||
description = "Access C-like structures directly from OCaml";
|
||||
license = stdenv.lib.licenses.isc;
|
||||
license = lib.licenses.isc;
|
||||
homepage = "https://github.com/mirage/ocaml-cstruct";
|
||||
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
||||
maintainers = [ lib.maintainers.vbgl ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, buildDunePackage, cstruct, ppx_tools_versioned }:
|
||||
{ lib, buildDunePackage, cstruct, sexplib, ppx_tools_versioned }:
|
||||
|
||||
if !lib.versionAtLeast (cstruct.version or "1") "3"
|
||||
then cstruct
|
||||
@@ -8,8 +8,8 @@ buildDunePackage {
|
||||
pname = "ppx_cstruct";
|
||||
inherit (cstruct) version src meta;
|
||||
|
||||
minimumOCamlVersion = "4.02";
|
||||
minimumOCamlVersion = "4.03";
|
||||
|
||||
buildInputs = [ ppx_tools_versioned ];
|
||||
buildInputs = [ sexplib ppx_tools_versioned ];
|
||||
propagatedBuildInputs = [ cstruct ];
|
||||
}
|
||||
|
||||
16
pkgs/development/ocaml-modules/cstruct/sexp.nix
Normal file
16
pkgs/development/ocaml-modules/cstruct/sexp.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ lib, buildDunePackage, alcotest, cstruct, sexplib }:
|
||||
|
||||
if !lib.versionAtLeast (cstruct.version or "1") "3"
|
||||
then cstruct
|
||||
else
|
||||
|
||||
buildDunePackage {
|
||||
pname = "cstruct-sexp";
|
||||
inherit (cstruct) version src meta;
|
||||
|
||||
doCheck = true;
|
||||
buildInputs = [ alcotest ];
|
||||
|
||||
propagatedBuildInputs = [ cstruct sexplib ];
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ buildDunePackage {
|
||||
pname = "cstruct-unix";
|
||||
inherit (cstruct) version src meta;
|
||||
|
||||
minimumOCamlVersion = "4.02";
|
||||
minimumOCamlVersion = "4.06";
|
||||
|
||||
propagatedBuildInputs = [ cstruct ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user