nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 61 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 ocaml, 6 findlib, 7 which, 8 sedlex, 9 easy-format, 10 xmlm, 11 base64, 12}: 13 14stdenv.mkDerivation rec { 15 version = "0.6.16"; 16 pname = "piqi"; 17 name = "ocaml${ocaml.version}-${pname}-${version}"; 18 19 src = fetchFromGitHub { 20 owner = "alavrik"; 21 repo = pname; 22 rev = "v${version}"; 23 sha256 = "sha256-qE+yybTn+kzbY0h8udhZYO+GwQPI/J/6p3LMmF12cFU="; 24 }; 25 26 nativeBuildInputs = [ 27 ocaml 28 findlib 29 which 30 ]; 31 propagatedBuildInputs = [ 32 sedlex 33 xmlm 34 easy-format 35 base64 36 ]; 37 38 strictDeps = true; 39 40 patches = [ 41 ./no-stream.patch 42 ./no-ocamlpath-override.patch 43 ]; 44 45 createFindlibDestdir = true; 46 47 postBuild = "make -C piqilib piqilib.cma"; 48 49 installTargets = [ 50 "install" 51 "ocaml-install" 52 ]; 53 54 meta = { 55 homepage = "https://piqi.org"; 56 description = "Universal schema language and a collection of tools built around it"; 57 license = lib.licenses.asl20; 58 maintainers = [ lib.maintainers.maurer ]; 59 broken = lib.versionAtLeast ocaml.version "5.0"; 60 }; 61}