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