···1-{ trivialBuild, lib, fetchFromGitHub, curl }:
2-3-trivialBuild {
4- pname = "plz";
5- version = "0.pre+date=2021-08-22";
6-7- src = fetchFromGitHub {
8- owner = "alphapapa";
9- repo = "plz.el";
10- rev = "7e456638a651bab3a814e3ea81742dd917509cbb";
11- hash = "sha256-8kn9ax1AVF6f9iCTqvVeJZihs03pYAhLjUDooG/ubxY=";
12- };
13-14- postPatch = ''
15- substituteInPlace ./plz.el \
16- --replace 'plz-curl-program "curl"' 'plz-curl-program "${curl}/bin/curl"'
17- '';
18-19- meta = {
20- description = "An HTTP library for Emacs";
21- longDescription = ''
22- plz is an HTTP library for Emacs. It uses curl as a backend, which avoids
23- some of the issues with using Emacs’s built-in url library. It supports
24- both synchronous and asynchronous requests. Its API is intended to be
25- simple, natural, and expressive. Its code is intended to be simple and
26- well-organized. Every feature is tested against httpbin.org.
27- '';
28- license = lib.licenses.gpl3Only;
29- platforms = lib.platforms.all;
30- };
31-}