ocamlPackages.biniou: remove legacy version 1.0.9 for OCaml < 4.02

main
Vincent Laporte 2 years ago committed by Vincent Laporte
parent 73059602ab
commit f3ef66220b
  1. 39
      pkgs/development/ocaml-modules/biniou/1.0.nix
  2. 5
      pkgs/top-level/ocaml-packages.nix

@ -1,39 +0,0 @@
{lib, stdenv, fetchurl, ocaml, findlib, easy-format}:
let
pname = "biniou";
version = "1.0.9";
webpage = "http://mjambon.com/${pname}.html";
in
assert lib.versionAtLeast (lib.getVersion ocaml) "3.11";
stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "http://mjambon.com/releases/${pname}/${name}.tar.gz";
sha256 = "14j3hrhbjqxbizr1pr8fcig9dmfzhbjjwzwyc99fcsdic67w8izb";
};
nativeBuildInputs = [ ocaml findlib ];
buildInputs = [ easy-format ];
strictDeps = true;
createFindlibDestdir = true;
makeFlags = [ "PREFIX=$(out)" ];
preBuild = ''
mkdir -p $out/bin
'';
meta = with lib; {
description = "A binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve";
homepage = webpage;
license = licenses.bsd3;
maintainers = [ maintainers.vbgl ];
platforms = ocaml.meta.platforms or [];
};
}

@ -139,10 +139,7 @@ let
benchmark = callPackage ../development/ocaml-modules/benchmark { };
biniou =
if lib.versionOlder "4.02" ocaml.version
then callPackage ../development/ocaml-modules/biniou { }
else callPackage ../development/ocaml-modules/biniou/1.0.nix { };
biniou = callPackage ../development/ocaml-modules/biniou { };
bisect_ppx = callPackage ../development/ocaml-modules/bisect_ppx { };

Loading…
Cancel
Save