mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
ocamlPackages.csexp: init at 1.3.1
This commit is contained in:
parent
e385f98792
commit
cadc15222f
26
pkgs/development/ocaml-modules/csexp/default.nix
Normal file
26
pkgs/development/ocaml-modules/csexp/default.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ lib, fetchurl, buildDunePackage }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "csexp";
|
||||
version = "1.3.1";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
minimumOCamlVersion = "4.08";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ocaml-dune/csexp/releases/download/${version}/csexp-${version}.tbz";
|
||||
sha256 = "0maihbqbqq9bwr0r1cv51r3m4hrkx9cf5wnxcz7rjgn13lcc9s49";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/csexp.ml --replace Result.result Result.t
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ocaml-dune/csexp";
|
||||
description = "Minimal support for Canonical S-expressions";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.marsam ];
|
||||
};
|
||||
}
|
@ -173,6 +173,8 @@ let
|
||||
|
||||
cryptokit = callPackage ../development/ocaml-modules/cryptokit { };
|
||||
|
||||
csexp = callPackage ../development/ocaml-modules/csexp { };
|
||||
|
||||
cstruct =
|
||||
if lib.versionAtLeast ocaml.version "4.2"
|
||||
then callPackage ../development/ocaml-modules/cstruct {}
|
||||
|
Loading…
Reference in New Issue
Block a user