summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pkgs/development/ocaml-modules/biniou/default.nix22
1 files changed, 7 insertions, 15 deletions
diff --git a/pkgs/development/ocaml-modules/biniou/default.nix b/pkgs/development/ocaml-modules/biniou/default.nix
index ff3b87699356..22d2b643b279 100644
--- a/pkgs/development/ocaml-modules/biniou/default.nix
+++ b/pkgs/development/ocaml-modules/biniou/default.nix
@@ -1,29 +1,21 @@
-{ lib, fetchFromGitHub, buildDunePackage, easy-format }:
+{ lib, fetchurl, buildDunePackage, camlp-streams, easy-format }:
buildDunePackage rec {
pname = "biniou";
- version = "1.2.1";
+ version = "1.2.2";
- useDune2 = true;
-
- src = fetchFromGitHub {
- owner = "ocaml-community";
- repo = pname;
- rev = version;
- sha256 = "0x2kiy809n1j0yf32l7hj102y628jp5jdrkbi3z7ld8jq04h1790";
+ src = fetchurl {
+ url = "https://github.com/ocaml-community/biniou/releases/download/${version}/biniou-${version}.tbz";
+ hash = "sha256-i/P/F80Oyy1rbR2UywjvCJ1Eyu+W6brmvmg51Cj6MY8=";
};
- propagatedBuildInputs = [ easy-format ];
+ propagatedBuildInputs = [ camlp-streams easy-format ];
strictDeps = true;
- postPatch = ''
- patchShebangs .
- '';
-
meta = {
description = "Binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve";
- inherit (src.meta) homepage;
+ homepage = "https://github.com/ocaml-community/biniou";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.vbgl ];
mainProgram = "bdump";