Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 38 lines 1.2 kB view raw
1{ 2 lib, 3 fetchurl, 4 buildDunePackage, 5 xmlm, 6}: 7 8buildDunePackage rec { 9 pname = "ezxmlm"; 10 version = "1.1.0"; 11 12 useDune2 = true; 13 14 src = fetchurl { 15 url = "https://github.com/mirage/ezxmlm/releases/download/v${version}/ezxmlm-v${version}.tbz"; 16 sha256 = "123dn4h993mlng9gzf4nc6mw75ja7ndcxkbkwfs48j5jk1z05j6d"; 17 }; 18 19 propagatedBuildInputs = [ xmlm ]; 20 21 meta = with lib; { 22 description = "Combinators to use with xmlm for parsing and selection"; 23 longDescription = '' 24 An "easy" interface on top of the xmlm library. This version provides 25 more convenient (but far less flexible) input and output functions 26 that go to and from [string] values. This avoids the need to write signal 27 code, which is useful for quick scripts that manipulate XML. 28 29 More advanced users should go straight to the Xmlm library and use it 30 directly, rather than be saddled with the Ezxmlm interface. Since the 31 types in this library are more specific than Xmlm, it should interoperate 32 just fine with it if you decide to switch over. 33 ''; 34 maintainers = [ maintainers.carlosdagos ]; 35 homepage = "https://github.com/mirage/ezxmlm/"; 36 license = licenses.isc; 37 }; 38}