nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 47 lines 1.2 kB view raw
1{ stdenv, lib, fetchFromGitHub, ocaml, findlib, camlp4, ocamlbuild 2, erm_xml, mirage-crypto, mirage-crypto-rng, base64 3}: 4 5stdenv.mkDerivation rec { 6 version = "0.3+20220404"; 7 pname = "ocaml${ocaml.version}-erm_xmpp"; 8 9 src = fetchFromGitHub { 10 owner = "hannesm"; 11 repo = "xmpp"; 12 rev = "e54d54e142ac9770c37e144693473692bf473530"; 13 sha256 = "sha256-Ize8Em4LI54Cy1Xuzr9BjQGV7JMr3W6KI1YzI8G1q/U="; 14 }; 15 16 nativeBuildInputs = [ ocaml findlib ocamlbuild camlp4 ]; 17 buildInputs = [ camlp4 ]; 18 propagatedBuildInputs = [ erm_xml mirage-crypto mirage-crypto-rng base64 ]; 19 20 strictDeps = true; 21 22 configurePhase = '' 23 runHook preConfigure 24 ocaml setup.ml -configure --prefix $out 25 runHook postConfigure 26 ''; 27 buildPhase = '' 28 runHook preBuild 29 ocaml setup.ml -build 30 runHook postBuild 31 ''; 32 installPhase = '' 33 runHook preInstall 34 ocaml setup.ml -install 35 runHook postInstall 36 ''; 37 38 createFindlibDestdir = true; 39 40 meta = { 41 homepage = "https://github.com/hannesm/xmpp"; 42 description = "OCaml based XMPP implementation (fork)"; 43 license = lib.licenses.bsd3; 44 maintainers = with lib.maintainers; [ sternenseemann ]; 45 inherit (ocaml.meta) platforms; 46 }; 47}