aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/ocaml-modules/csexp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/csexp/default.nix')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/csexp/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/csexp/default.nix b/nixpkgs/pkgs/development/ocaml-modules/csexp/default.nix
new file mode 100644
index 00000000000..51274890700
--- /dev/null
+++ b/nixpkgs/pkgs/development/ocaml-modules/csexp/default.nix
@@ -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 ];
+ };
+}