Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 76 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uchar, uutf, uunf, uucd,}:
let pname = "uucp"; version = "16.0.0"; webpage = "https://erratique.ch/software/${pname}"; minimalOCamlVersion = "4.03"; doCheck = true;in
if lib.versionOlder ocaml.version minimalOCamlVersion then builtins.throw "${pname} needs at least OCaml ${minimalOCamlVersion}"else
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-${pname}-${version}";
src = fetchurl { url = "${webpage}/releases/${pname}-${version}.tbz"; hash = "sha256-5//UGI4u3OROYdxtwz9K2vCTzYiN16mOyEFhUQWtgEQ="; };
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ]; buildInputs = [ topkg uutf uunf uucd ];
propagatedBuildInputs = [ uchar ];
strictDeps = true;
buildPhase = '' runHook preBuild ${topkg.buildPhase} --with-cmdliner false --tests ${lib.boolToString doCheck} runHook postBuild '';
inherit (topkg) installPhase;
inherit doCheck; checkPhase = '' runHook preCheck ${topkg.run} test runHook postCheck ''; checkInputs = [ uucd ];
meta = with lib; { description = "OCaml library providing efficient access to a selection of character properties of the Unicode character database"; homepage = webpage; inherit (ocaml.meta) platforms; license = licenses.bsd3; maintainers = [ maintainers.vbgl ]; }; }