···11-{ trivialBuild, lib, fetchFromGitHub, curl }:
22-33-trivialBuild {
44- pname = "plz";
55- version = "0.pre+date=2021-08-22";
66-77- src = fetchFromGitHub {
88- owner = "alphapapa";
99- repo = "plz.el";
1010- rev = "7e456638a651bab3a814e3ea81742dd917509cbb";
1111- hash = "sha256-8kn9ax1AVF6f9iCTqvVeJZihs03pYAhLjUDooG/ubxY=";
1212- };
1313-1414- postPatch = ''
1515- substituteInPlace ./plz.el \
1616- --replace 'plz-curl-program "curl"' 'plz-curl-program "${curl}/bin/curl"'
1717- '';
1818-1919- meta = {
2020- description = "An HTTP library for Emacs";
2121- longDescription = ''
2222- plz is an HTTP library for Emacs. It uses curl as a backend, which avoids
2323- some of the issues with using Emacs’s built-in url library. It supports
2424- both synchronous and asynchronous requests. Its API is intended to be
2525- simple, natural, and expressive. Its code is intended to be simple and
2626- well-organized. Every feature is tested against httpbin.org.
2727- '';
2828- license = lib.licenses.gpl3Only;
2929- platforms = lib.platforms.all;
3030- };
3131-}