Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 16.09 25 lines 742 B view raw
1{stdenv, fetchurl, buildOcaml, time}: 2 3buildOcaml rec { 4 name = "bitstring"; 5 version = "2.0.4"; 6 src = fetchurl { 7 url = "http://bitstring.googlecode.com/files/ocaml-bitstring-${version}.tar.gz"; 8 sha256 = "0mapzn2ls5qcrzjm1az50lqjj76ldkmz4fbv2phc9w6smab50qy5"; 9 }; 10 11 patches = [ ./camlp4.patch ./meta.patch ./srcdir.patch ]; 12 13 buildInputs = [time]; 14 doCheck = true; 15 16 createFindlibDestdir = true; 17 hasSharedObjects = true; 18 19 meta = with stdenv.lib; { 20 description = "This library adds Erlang-style bitstrings and matching over bitstrings as a syntax extension and library for OCaml"; 21 homepage = http://code.google.com/p/bitstring/; 22 license = licenses.lgpl21Plus; 23 maintainers = [ maintainers.maurer ]; 24 }; 25}