Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 buildDunePackage, 5 lwt, 6 lwt_ppx, 7 stringext, 8 alcotest, 9}: 10 11buildDunePackage rec { 12 pname = "multipart-form-data"; 13 version = "0.3.0"; 14 15 src = fetchFromGitHub { 16 owner = "cryptosense"; 17 repo = pname; 18 rev = version; 19 hash = "sha256-3MYJDvVbPIv/JDiB9nKcLRFC5Qa0afyEfz7hk8MWRII="; 20 }; 21 22 buildInputs = [ lwt_ppx ]; 23 propagatedBuildInputs = [ 24 lwt 25 stringext 26 ]; 27 28 duneVersion = "3"; 29 30 doCheck = true; 31 checkInputs = [ alcotest ]; 32 33 meta = { 34 description = "Parser for multipart/form-data (RFC2388)"; 35 homepage = "https://github.com/cryptosense/multipart-form-data"; 36 license = lib.licenses.bsd2; 37 maintainers = [ lib.maintainers.vbgl ]; 38 }; 39}