mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
34 lines
1.1 KiB
Nix
34 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, buildDunePackage, xmlm }:
|
|
|
|
buildDunePackage rec {
|
|
pname = "ezxmlm";
|
|
version = "1.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "avsm";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1dgr61f0hymywikn67inq908x5adrzl3fjx3v14l9k46x7kkacl9";
|
|
};
|
|
|
|
propagatedBuildInputs = [ xmlm ];
|
|
|
|
meta = with lib; {
|
|
description = "Combinators to use with xmlm for parsing and selection";
|
|
longDescription = ''
|
|
An "easy" interface on top of the xmlm library. This version provides
|
|
more convenient (but far less flexible) input and output functions
|
|
that go to and from [string] values. This avoids the need to write signal
|
|
code, which is useful for quick scripts that manipulate XML.
|
|
|
|
More advanced users should go straight to the Xmlm library and use it
|
|
directly, rather than be saddled with the Ezxmlm interface. Since the
|
|
types in this library are more specific than Xmlm, it should interoperate
|
|
just fine with it if you decide to switch over.
|
|
'';
|
|
maintainers = [ maintainers.carlosdagos ];
|
|
inherit (src.meta) homepage;
|
|
license = licenses.isc;
|
|
};
|
|
}
|