mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
4e42cac49d
This change was produced by searching for remaining occurrences of stdenv.lib and replacing them manually. Reference #108938.
37 lines
880 B
Nix
37 lines
880 B
Nix
{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";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib easy-format ];
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
preBuild = ''
|
|
mkdir $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 [];
|
|
};
|
|
}
|